ArcGISAngularUnit

Namespace: Esri::GameEngine::Geometry
Class: Esri/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
NameTypeConstSummary
unitId
No

The known id of the unit.

Properties

PropertyTypeNullableReadonlySummary
No
Yes

The ArcGISAngularUnitId of the given angular unit.

AngularUnitId

ArcGISAngularUnitId GetAngularUnitId() const

The ArcGISAngularUnitId of the given angular unit.

If an error occurs then ArcGISAngularUnitId::Other is returned.

Methods

SignatureReturn TypeSummary

ConvertFrom(const ArcGISAngularUnit&, double)

double

Converts a value in another UOM into this UOM.

ConvertTo(const ArcGISAngularUnit&, double)

double

Converts a value in this UOM into another UOM.

FromRadians(double)

double

Converts a radian value to this UOM.

ToRadians(double)

double

Converts a value in this UOM to radians.

ConvertFrom

double ConvertFrom(const ArcGISAngularUnit& fromUnit, double angle) const

Converts a value in another UOM into this UOM.

Since 1.0.0

Arguments
NameTypeConstSummary
fromUnit
Yes

The UOM to convert from.

angle
No

The value to convert.

Returns double

The value in the this UOM or NAN if the conversion fails.

ConvertTo

double ConvertTo(const ArcGISAngularUnit& toUnit, double angle) const

Converts a value in this UOM into another UOM.

Since 1.0.0

Arguments
NameTypeConstSummary
toUnit
Yes

The UOM to convert to.

angle
No

The value to convert.

Returns double

The value in the target UOM or NAN if the conversion fails.

FromRadians

double FromRadians(double radians) const

Converts a radian value to this UOM.

Since 1.0.0

Arguments
NameTypeConstSummary
radians
No

The value to convert.

Returns double

The value in this UOM or NAN if the conversion fails.

ToRadians

double ToRadians(double angle) const

Converts a value in this UOM to radians.

Since 1.0.0

Arguments
NameTypeConstSummary
angle
No

The value to convert.

Returns double

The value in radians or NAN if the conversion fails.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.