Namespace: GameEngine.Geometry
Class: GameEngine/Geometry/ArcGISAngularUnit
Since: 1.0.0
Inheritance: ArcGISUnit->ArcGISAngularUnit
Summary
Defines an angular unit of measurement.
Constructors
ArcGISAngularUnit(ArcGISAngularUnitId)
Creates a unit given its known id.
Since 1.0.0
Arguments
Name | Type | Summary |
---|---|---|
unit | The known id of the unit. |
Properties
Property | Type | Nullable | Readonly | Summary |
---|---|---|---|---|
No | Yes | The ArcGISAngularUnitId of the given angular unit. |
AngularUnitId
ArcGISAngularUnitId AngularUnitId
The ArcGISAngularUnitId of the given angular unit.
If an error occurs then ArcGISAngularUnitId.Other is returned.
Methods
Signature | Return Type | Summary |
---|---|---|
Converts a value in another UOM into this UOM. | ||
Converts a value in this UOM into another UOM. | ||
Converts a radian value to this UOM. | ||
Converts a value in this UOM to radians. |
ConvertFrom
double ConvertFrom(ArcGISAngularUnit fromUnit, double angle)
Converts a value in another UOM into this UOM.
Since 1.0.0
Arguments
Name | Type | Summary |
---|---|---|
from | The UOM to convert from. | |
angle | The value to convert. |
Returns double
The value in the this UOM or NAN if the conversion fails.
ConvertTo
double ConvertTo(ArcGISAngularUnit toUnit, double angle)
Converts a value in this UOM into another UOM.
Since 1.0.0
Arguments
Name | Type | Summary |
---|---|---|
to | The UOM to convert to. | |
angle | The value to convert. |
Returns double
The value in the target UOM or NAN if the conversion fails.
FromRadians
Converts a radian value to this UOM.
Since 1.0.0
Arguments
Name | Type | Summary |
---|---|---|
radians | The value to convert. |
Returns double
The value in this UOM or NAN if the conversion fails.