MathUtilDistToUnits Method | |
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Convert from radians to a given
Unit.
Namespace:
Telogis.GeoBase
Assembly:
geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax public static double DistToUnits(
double radians_distance,
DistanceUnit units
)
Public Shared Function DistToUnits (
radians_distance As Double,
units As DistanceUnit
) As Double
Parameters
- radians_distance
- Type: SystemDouble
The distance in radians. - units
- Type: Telogis.GeoBaseDistanceUnit
The unit type to convert distance to.
Return Value
Type:
DoubleDistance in the given unit.
Examples
To convert 1.337 radians to kilometers:
double kmDist = DistToUnits(1.337, KILOMETERS);
See Also