Contains the distance measurement data associated with a specific distance component. More...
Header | #include <Distance.h |
Since | Esri |
Public Functions
Distance() | |
Distance(const Esri | |
Distance( | |
~ | |
bool | is |
Esri | unit() const |
double | value() const |
Esri | operator=( |
Esri | operator=(const Esri |
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.
[noexcept]
Distance::Distance(Esri::ArcGISRuntime::Distance &&other)
Move constructor from other Distance.
[noexcept]
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.
[noexcept]
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.