ad_physics
|
#include <ad/physics/Distance.hpp>
Public Member Functions | |
Distance () | |
default constructor More... | |
_AD_PHYSICS_DISTANCE_EXPLICIT_CONVERSION_ | Distance (double const iDistance) |
standard constructor More... | |
Distance (const Distance &other)=default | |
standard copy constructor | |
Distance (Distance &&other)=default | |
standard move constructor | |
Distance & | operator= (const Distance &other)=default |
standard assignment operator More... | |
Distance & | operator= (Distance &&other)=default |
standard move operator More... | |
bool | operator== (const Distance &other) const |
standard comparison operator More... | |
bool | operator!= (const Distance &other) const |
standard comparison operator More... | |
bool | operator> (const Distance &other) const |
standard comparison operator More... | |
bool | operator< (const Distance &other) const |
standard comparison operator More... | |
bool | operator>= (const Distance &other) const |
standard comparison operator More... | |
bool | operator<= (const Distance &other) const |
standard comparison operator More... | |
Distance | operator+ (const Distance &other) const |
standard arithmetic operator More... | |
Distance & | operator+= (const Distance &other) |
standard arithmetic operator More... | |
Distance | operator- (const Distance &other) const |
standard arithmetic operator More... | |
Distance | operator-= (const Distance &other) |
standard arithmetic operator More... | |
DistanceSquared | operator* (const Distance &other) const |
standard arithmetic operator More... | |
Distance | operator* (const double &scalar) const |
standard arithmetic operator More... | |
Distance | operator/ (const double &scalar) const |
standard arithmetic operator More... | |
double | operator/ (const Distance &other) const |
standard arithmetic operator More... | |
Distance | operator- () const |
standard arithmetic operator More... | |
_AD_PHYSICS_DISTANCE_EXPLICIT_CONVERSION_ | operator double () const |
conversion to base type: double More... | |
bool | isValid () const |
void | ensureValid () const |
ensure that the Distance is valid More... | |
void | ensureValidNonZero () const |
ensure that the Distance is valid and non zero More... | |
Static Public Member Functions | |
static Distance | getMin () |
get minimum valid Distance (i.e. cMinValue) | |
static Distance | getMax () |
get maximum valid Distance (i.e. cMaxValue) | |
static Distance | getPrecision () |
get assumed accuracy of Distance (i.e. cPrecisionValue) | |
Static Public Attributes | |
static const double | cMinValue |
constant defining the minimum valid Distance value (used in isValid()) | |
static const double | cMaxValue |
constant defining the maximum valid Distance value (used in isValid()) | |
static const double | cPrecisionValue |
constant defining the assumed Distance value accuracy (used in comparison operator==(), operator!=()) | |
DataType Distance.
The length of a specific path traveled between two points. The unit is: Meter
|
inline |
default constructor
The default value of Distance is: std::numeric_limits<double>::quiet_NaN()
|
inline |
standard constructor
|
inline |
|
inline |
|
inline |
|
inline |
conversion to base type: double
|
inline |
DistanceSquared ad::physics::Distance::operator* | ( | const Distance & | other | ) | const |
standard arithmetic operator
[in] | other | Other Distance |
|
inline |
standard arithmetic operator
[in] | scalar | Scalar double value |
value
or the result of the operation is not valid standard arithmetic operator
[in] | other | Other Distance |
standard arithmetic operator
[in] | other | Other Distance |
|
inline |
standard arithmetic operator
standard arithmetic operator
[in] | other | Other Distance |
standard arithmetic operator
[in] | other | Other Distance |
|
inline |
standard arithmetic operator
[in] | other | Other Distance |
|
inline |
standard arithmetic operator
[in] | scalar | Scalar double value |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |