Distance Class

  • Distance
  • class Esri::ArcGISRuntime::Distance

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

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

    Public Functions

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

    Detailed Description

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

    Instances of Distance are immutable.

    Member Function Documentation

    Distance::Distance()

    Default constructor. Creates an empty Distance.

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

    Copy constructor from other Distance.

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

    Move constructor from other Distance.

    Distance::~Distance()

    Destructor

    bool Distance::isEmpty() const

    Returns whether this Distance is empty.

    A Distance is empty if its 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.

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

    Assignment operator from other Distance.

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

    Move operator from other Distance.

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