ad_physics
|
DataType DistanceSquared. More...
#include <ad/physics/DistanceSquared.hpp>
Public Member Functions | |
DistanceSquared () | |
default constructor More... | |
_AD_PHYSICS_DISTANCESQUARED_EXPLICIT_CONVERSION_ | DistanceSquared (double const iDistanceSquared) |
standard constructor More... | |
DistanceSquared (const DistanceSquared &other)=default | |
standard copy constructor | |
DistanceSquared (DistanceSquared &&other)=default | |
standard move constructor | |
DistanceSquared & | operator= (const DistanceSquared &other)=default |
standard assignment operator More... | |
DistanceSquared & | operator= (DistanceSquared &&other)=default |
standard move operator More... | |
bool | operator== (const DistanceSquared &other) const |
standard comparison operator More... | |
bool | operator!= (const DistanceSquared &other) const |
standard comparison operator More... | |
bool | operator> (const DistanceSquared &other) const |
standard comparison operator More... | |
bool | operator< (const DistanceSquared &other) const |
standard comparison operator More... | |
bool | operator>= (const DistanceSquared &other) const |
standard comparison operator More... | |
bool | operator<= (const DistanceSquared &other) const |
standard comparison operator More... | |
DistanceSquared | operator+ (const DistanceSquared &other) const |
standard arithmetic operator More... | |
DistanceSquared & | operator+= (const DistanceSquared &other) |
standard arithmetic operator More... | |
DistanceSquared | operator- (const DistanceSquared &other) const |
standard arithmetic operator More... | |
DistanceSquared | operator-= (const DistanceSquared &other) |
standard arithmetic operator More... | |
DistanceSquared | operator* (const double &scalar) const |
standard arithmetic operator More... | |
DistanceSquared | operator/ (const double &scalar) const |
standard arithmetic operator More... | |
double | operator/ (const DistanceSquared &other) const |
standard arithmetic operator More... | |
DistanceSquared | operator- () const |
standard arithmetic operator More... | |
_AD_PHYSICS_DISTANCESQUARED_EXPLICIT_CONVERSION_ | operator double () const |
conversion to base type: double More... | |
bool | isValid () const |
void | ensureValid () const |
ensure that the DistanceSquared is valid More... | |
void | ensureValidNonZero () const |
ensure that the DistanceSquared is valid and non zero More... | |
Static Public Member Functions | |
static DistanceSquared | getMin () |
get minimum valid DistanceSquared (i.e. cMinValue) | |
static DistanceSquared | getMax () |
get maximum valid DistanceSquared (i.e. cMaxValue) | |
static DistanceSquared | getPrecision () |
get assumed accuracy of DistanceSquared (i.e. cPrecisionValue) | |
Static Public Attributes | |
static const double | cMinValue |
constant defining the minimum valid DistanceSquared value (used in isValid()) | |
static const double | cMaxValue |
constant defining the maximum valid DistanceSquared value (used in isValid()) | |
static const double | cPrecisionValue |
constant defining the assumed DistanceSquared value accuracy (used in comparison operator==(), operator!=()) | |
DataType DistanceSquared.
DistanceSquared represents a squared Distance. The unit is: SquareMeter
|
inline |
default constructor
The default value of DistanceSquared is: std::numeric_limits<double>::quiet_NaN()
|
inline |
standard constructor
|
inline |
ensure that the DistanceSquared is valid
Throws an std::out_of_range() exception if the DistanceSquared in not valid (i.e. isValid() returns false)
|
inline |
ensure that the DistanceSquared is valid and non zero
Throws an std::out_of_range() exception if the DistanceSquared in not valid or zero (i.e. isValid() returns false)
|
inline |
true
if the DistanceSquared in a valid rangeAn DistanceSquared value is defined to be valid if:
|
inline |
conversion to base type: double
|
inline |
standard comparison operator
[in] | other | Other DistanceSquared. |
true
if one of the DistanceSquared is not valid or they can be taken as numerically different
|
inline |
standard arithmetic operator
[in] | scalar | Scalar double value |
value
or the result of the operation is not valid
|
inline |
standard arithmetic operator
[in] | other | Other DistanceSquared |
|
inline |
standard arithmetic operator
[in] | other | Other DistanceSquared |
|
inline |
standard arithmetic operator
|
inline |
standard arithmetic operator
[in] | other | Other DistanceSquared |
|
inline |
standard arithmetic operator
[in] | other | Other DistanceSquared |
|
inline |
standard arithmetic operator
[in] | other | Other DistanceSquared |
|
inline |
standard arithmetic operator
[in] | scalar | Scalar double value |
|
inline |
standard comparison operator
[in] | other | Other DistanceSquared. |
true
if both DistanceSquared are valid and this DistanceSquared is strictly numerically smaller than other.
|
inline |
standard comparison operator
[in] | other | Other DistanceSquared |
true
if both DistanceSquared are valid and this DistanceSquared is numerically smaller than other.
|
default |
standard assignment operator
[in] | other | Other DistanceSquared |
|
default |
standard move operator
[in] | other | Other DistanceSquared |
|
inline |
standard comparison operator
[in] | other | Other DistanceSquared |
true
if both DistanceSquared are valid and can be taken as numerically equal
|
inline |
standard comparison operator
[in] | other | Other DistanceSquared. |
true
if both DistanceSquared are valid and this DistanceSquared is strictly numerically greater than other.
|
inline |
standard comparison operator
[in] | other | Other DistanceSquared. |
true
if both DistanceSquared are valid and this DistanceSquared is numerically greater than other.