Function Name: Convert Distance

Definition

Convert from (feet or meters) to (feet or meters).

Returns

  1. original elevation if source_units==destination_units,
  2. the converted elevation if feet-meters conversion is needed,
  3. 0.0 if source or destination units are not SRM_FEET or SRM_METERS

Prototype


extern SE_FLOAT64
SE_ConvertDistance
(
SRM_ELEVATION_UNITS_ENUM source_units, (notes)
SRM_ELEVATION_UNITS_ENUM destination_units, (notes)
SE_FLOAT64 elevation (notes)
);

Parameters Notes

source_units

 SRM_FEET or SRM_METERS

destination_units

 SRM_FEET or SRM_METERS

elevation

 the elevation to convert

Prev: Convert Degrees To Radians. Next: Convert Feet To Meters. Up:Index.