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