;

Distance Class

  • Distance
  • class Esri::ArcGISRuntime::Distance

    Contains the distance measurement data associated with a specific distance component. More...

    Header: #include <Distance>
    Since: Esri::ArcGISRuntime 100.3

    This class was introduced in Esri::ArcGISRuntime 100.3.

    Public Functions

    Distance(Esri::ArcGISRuntime::Distance &&other)
    Distance(const Esri::ArcGISRuntime::Distance &other)
    Distance()
    Esri::ArcGISRuntime::Distance &operator=(Esri::ArcGISRuntime::Distance &&other)
    Esri::ArcGISRuntime::Distance &operator=(const Esri::ArcGISRuntime::Distance &other)
    ~Distance()
    bool isEmpty() const
    Esri::ArcGISRuntime::LinearUnit unit() const
    double value() const

    Detailed Description

    Distance contains the value and associated LinearUnit of a specific distance component.

    Instances of Distance are immutable.

    Member Function Documentation

    Distance::Distance(Esri::ArcGISRuntime::Distance &&other)

    Move constructor from other Distance.

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

    Copy constructor from other Distance.

    Distance::Distance()

    Default constructor. Creates an empty Distance.

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

    Move operator from other Distance.

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

    Assignment operator from other Distance.

    Distance::~Distance()

    Destructor

    bool Distance::isEmpty() const

    Returns whether this Distance is empty.

    A Distance is empty if it's distance value is NAN and linear unit object is empty.

    Returns true if empty.

    Esri::ArcGISRuntime::LinearUnit Distance::unit() const

    Returns the linear unit of the Distance component by which the value of the distance is measured.

    double Distance::value() const

    Returns the value of the Distance component.

    The value is the scalar value of the distance, measured by the associated Distance linear unit.

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