Skip To Content ArcGIS for Developers Sign In Dashboard

AngularUnit Class

(Esri::ArcGISRuntime::AngularUnit)

Indicates the units of measurement of an instance of AngularUnit, or an angular measurement operation. More...

Header: #include <AngularUnit>
Since: Esri::ArcGISRuntime 100.0
Inherits: Unit

Public Functions

AngularUnit()
AngularUnit(AngularUnitId angularUnitId)
AngularUnit(const AngularUnit &other)
AngularUnit(AngularUnit &&other)
AngularUnit(const Unit &other)
~AngularUnit()
AngularUnitId angularUnitId() const
double convertFrom(const AngularUnit &fromUnit, double angle) const
double convertFromRadians(double radians) const
double convertTo(const AngularUnit &toUnit, double angle) const
double convertToRadians(double thisUnitValue) const
bool isValid() const
AngularUnit &operator=(const AngularUnit &other)
AngularUnit &operator=(AngularUnit &&other)

Static Public Members

AngularUnit degrees()
AngularUnit radians()

Detailed Description

Indicates the units of measurement of an instance of AngularUnit, or an angular measurement operation.

Instances of classes that inherit from the Units class, like this one does, are initialized as a specific unit of measurement. Each instance has properties for the unit name (singular, plural and abbreviated) and provides methods for unit conversion.

Member Function Documentation

AngularUnit::AngularUnit()

Default constructor.

AngularUnit::AngularUnit(AngularUnitId angularUnitId)

Creates an AngularUnit representing the specified angularUnitId.

AngularUnit::AngularUnit(const AngularUnit &other)

Copy constructor from other AngularUnit.

AngularUnit::AngularUnit(AngularUnit &&other)

Move constructor from other AngularUnit.

AngularUnit::AngularUnit(const Unit &other)

Converting constructor from other Unit.

See also Downcast helper functions.

AngularUnit::~AngularUnit()

Destructor.

AngularUnitId AngularUnit::angularUnitId() const

Returns the AngularUnitId corresponding to this AngularUnit.

double AngularUnit::convertFrom(const AngularUnit &fromUnit, double angle) const

Returns the angular value angle converted from another AngularUnit (fromUnit) into this AngularUnit.

double AngularUnit::convertFromRadians(double radians) const

Returns the angular value radians converted from radians into AngularUnit.

double AngularUnit::convertTo(const AngularUnit &toUnit, double angle) const

Returns the angular value angle converted from this AngularUnit into toUnit units.

double AngularUnit::convertToRadians(double thisUnitValue) const

Returns the angular value thisUnitValue converted from this AngularUnit into radians.

[static] AngularUnit AngularUnit::degrees()

Returns an AngularUnit object representing degrees (AngularUnitId::Degrees).

bool AngularUnit::isValid() const

Gets whether this AngularUnit is valid.

An AngularUnit is valid if it is not empty and unitType is UnitType::AngularUnit.

Returns true if valid.

This function was introduced in Esri::ArcGISRuntime 100.2.

[static] AngularUnit AngularUnit::radians()

Returns an AngularUnit object representing radians (AngularUnitId::Radians).

AngularUnit &AngularUnit::operator=(const AngularUnit &other)

Assignment operator from other AngularUnit.

AngularUnit &AngularUnit::operator=(AngularUnit &&other)

Move operator from other AngularUnit.


Feedback on this topic?