AngularUnit Class

  • AngularUnit
  • class Esri::ArcGISRuntime::AngularUnit

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

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

    Public Functions

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

    Static Public Members

    Esri::ArcGISRuntime::AngularUnit degrees()
    Esri::ArcGISRuntime::AngularUnit radians()

    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.

    AngularUnit::AngularUnit(const Esri::ArcGISRuntime::AngularUnit &other)

    Copy constructor from other AngularUnit.

    AngularUnit::AngularUnit(Esri::ArcGISRuntime::AngularUnit &&other)

    Move constructor from other AngularUnit.

    [explicit] AngularUnit::AngularUnit(const Esri::ArcGISRuntime::Unit &other)

    Converting constructor from other Unit.

    See also Downcast helper functions.

    [override virtual] 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

    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 Esri::ArcGISRuntime::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] 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).

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

    Assignment operator from other AngularUnit.

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

    Move operator from other AngularUnit.

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