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.

    You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

    Your ArcGIS portal

    Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

    Your ArcGIS Location Platform dashboard

    Manage billing, monitor service usage, and access additional resources.

    Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

    Close