Skip To Content ArcGIS for Developers Sign In Dashboard

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

Public Functions

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

Detailed Description

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

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 Distance &other)

Copy constructor from other Distance.

Distance::Distance(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 it's distance value is NAN and linear unit object is empty.

Returns true if empty.

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.

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

Assignment operator from other Distance.

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

Move operator from other Distance.


Feedback on this topic?