Namespace: GameEngine.Geometry
Class: GameEngine/Geometry/ArcGISLinearUnit
Since: 1.0.0
Inheritance: ArcGISUnit->ArcGISLinearUnit

Summary

Defines a linear unit of measurement.

Constructors

ArcGISLinearUnit(ArcGISAreaUnit areaUnit)

Creates a linear unit given an area unit.

Since 1.0.0

Arguments
NameTypeSummary
areaUnit

The area unit.

ArcGISLinearUnit(ArcGISLinearUnitId unitId)

Creates a unit given its known id.

Since 1.0.0

Arguments
NameTypeSummary
unitId

The known id of the unit.

Properties

PropertyTypeNullableReadonlySummary
No
Yes

The ArcGISLinearUnitId of the given Linear unit.

LinearUnitId

ArcGISLinearUnitId LinearUnitId

The ArcGISLinearUnitId of the given Linear unit.

If an error occurs then ArcGISLinearUnitId.Other is returned.

Methods

SignatureReturn TypeSummary

Converts a value in another UOM into this UOM.

Converts a value in this UOM into another UOM.

Converts a meter value to this UOM.

Converts a value in this UOM to meters.

ConvertFrom

double ConvertFrom(ArcGISLinearUnit fromUnit, double value)

Converts a value in another UOM into this UOM.

Since 1.0.0

Arguments
NameTypeSummary
fromUnit

The UOM to convert from.

value

The value to convert.

Returns double

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

ConvertTo

double ConvertTo(ArcGISLinearUnit toUnit, double value)

Converts a value in this UOM into another UOM.

Since 1.0.0

Arguments
NameTypeSummary
toUnit

The UOM to convert to.

value

The value to convert.

Returns double

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

FromMeters

double FromMeters(double value)

Converts a meter value to this UOM.

Since 1.0.0

Arguments
NameTypeSummary
value

The value to convert.

Returns double

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

ToMeters

double ToMeters(double value)

Converts a value in this UOM to meters.

Since 1.0.0

Arguments
NameTypeSummary
value

The value to convert.

Returns double

The value in meters or NAN if the conversion fails.