Indicates the units of measurement of an instance of AngularUnit, or an angular measurement operation. More...
Header | #include <Angular |
Since | Esri |
Inherits | Esri |
Public Functions
Angular | |
Angular | |
Angular | |
Angular | |
Angular | |
virtual | ~ |
Esri | angular |
double | convert |
double | convert |
double | convert |
double | convert |
(since Esri bool | is |
Esri | operator=( |
Esri | operator=(const Esri |
Static Public Members
Detailed Description
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 (Esri::ArcGISRuntime::AngularUnitId angularUnitId )
Creates an AngularUnit representing the specified angularUnitId.
[explicit]
AngularUnit::AngularUnit (const Esri::ArcGISRuntime::Unit &other)
Converting constructor from other Unit.
See also Downcast helper functions.
AngularUnit::AngularUnit (const Esri::ArcGISRuntime::AngularUnit &other)
Copy constructor from other AngularUnit.
[noexcept]
AngularUnit::AngularUnit (Esri::ArcGISRuntime::AngularUnit &&other)
Move constructor from other AngularUnit.
[override virtual noexcept]
AngularUnit::~AngularUnit ()
Destructor.
Esri::ArcGISRuntime::AngularUnitId AngularUnit::angularUnitId () const
Returns the AngularUnitId corresponding to this AngularUnit.
double AngularUnit::convertFrom (const Esri::ArcGISRuntime::AngularUnit &fromUnit , double angle) const
Converts and returns a value in another UOM into this UOM.
- fromUnit - The UOM to convert from.
- angle - The value to convert.
double AngularUnit::convertFromRadians (double radians) const
Returns the angular value radians converted from radians into AngularUnit.
double AngularUnit::convertTo (const Esri::ArcGISRuntime::AngularUnit &toUnit , double angle) const
Converts and returns a value in this UOM into another UOM.
- toUnit - The UOM to convert to.
- angle - The value to convert.
double AngularUnit::convertToRadians (double thisUnitValue ) const
Returns the angular value thisUnitValue converted from this AngularUnit into radians.
[static]
Esri::ArcGISRuntime::AngularUnit AngularUnit::degrees()
Returns an AngularUnit object representing degrees (AngularUnitId::Degrees).
[since Esri::ArcGISRuntime 100.2]
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]
Esri::ArcGISRuntime::AngularUnit AngularUnit::radians()
Returns an AngularUnit object representing radians (AngularUnitId::Radians).
[noexcept]
Esri::ArcGISRuntime::AngularUnit &AngularUnit::operator=(Esri::ArcGISRuntime::AngularUnit &&other)
Move operator from other AngularUnit.
Esri::ArcGISRuntime::AngularUnit &AngularUnit::operator=(const Esri::ArcGISRuntime::AngularUnit &other)
Assignment operator from other AngularUnit.