ArcGISAreaUnit

Namespace: Esri::GameEngine::Geometry
Class: Esri/GameEngine/Geometry/ArcGISAreaUnit
Since: 1.0.0
Inheritance: ArcGISUnit->ArcGISAreaUnit

Summary

Defines an area unit of measurement.

Constructors

ArcGISAreaUnit(ArcGISAreaUnitId)

Creates a unit given its known id.

Since 1.0.0

Arguments
NameTypeConstSummary
unitId
No

The known id of the unit.

ArcGISAreaUnit(const ArcGISLinearUnit&)

Creates an area unit given a linear unit.

Since 1.0.0

Arguments
NameTypeConstSummary
linearUnit
Yes

The linear unit.

Properties

PropertyTypeNullableReadonlySummary
No
Yes

The ArcGISAreaUnitId of the given Area unit.

AreaUnitId

ArcGISAreaUnitId GetAreaUnitId() const

The ArcGISAreaUnitId of the given Area unit.

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

Methods

SignatureReturn TypeSummary

ConvertFrom(const ArcGISAreaUnit&, double)

double

Converts a value in another UOM into this UOM.

ConvertTo(const ArcGISAreaUnit&, double)

double

Converts a value in this UOM into another UOM.

FromSquareMeters(double)

double

Converts a square meter value to this UOM.

ToSquareMeters(double)

double

Converts a value in this UOM to square meters.

ConvertFrom

double ConvertFrom(const ArcGISAreaUnit& fromUnit, double area) const

Converts a value in another UOM into this UOM.

Since 1.0.0

Arguments
NameTypeConstSummary
fromUnit
Yes

The UOM to convert from.

area
No

The value to convert.

Returns double

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

ConvertTo

double ConvertTo(const ArcGISAreaUnit& toUnit, double area) const

Converts a value in this UOM into another UOM.

Since 1.0.0

Arguments
NameTypeConstSummary
toUnit
Yes

The UOM to convert to.

area
No

The value to convert.

Returns double

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

FromSquareMeters

double FromSquareMeters(double area) const

Converts a square meter value to this UOM.

Since 1.0.0

Arguments
NameTypeConstSummary
area
No

The value to convert.

Returns double

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

ToSquareMeters

double ToSquareMeters(double area) const

Converts a value in this UOM to square meters.

Since 1.0.0

Arguments
NameTypeConstSummary
area
No

The value to convert.

Returns double

The value in square meters 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.