ad_physics
|
#include <ad/physics/Weight.hpp>
Public Member Functions | |
Weight () | |
default constructor More... | |
_AD_PHYSICS_WEIGHT_EXPLICIT_CONVERSION_ | Weight (double const iWeight) |
standard constructor More... | |
Weight (const Weight &other)=default | |
standard copy constructor | |
Weight (Weight &&other)=default | |
standard move constructor | |
Weight & | operator= (const Weight &other)=default |
standard assignment operator More... | |
Weight & | operator= (Weight &&other)=default |
standard move operator More... | |
bool | operator== (const Weight &other) const |
standard comparison operator More... | |
bool | operator!= (const Weight &other) const |
standard comparison operator More... | |
bool | operator> (const Weight &other) const |
standard comparison operator More... | |
bool | operator< (const Weight &other) const |
standard comparison operator More... | |
bool | operator>= (const Weight &other) const |
standard comparison operator More... | |
bool | operator<= (const Weight &other) const |
standard comparison operator More... | |
Weight | operator+ (const Weight &other) const |
standard arithmetic operator More... | |
Weight & | operator+= (const Weight &other) |
standard arithmetic operator More... | |
Weight | operator- (const Weight &other) const |
standard arithmetic operator More... | |
Weight | operator-= (const Weight &other) |
standard arithmetic operator More... | |
Weight | operator* (const double &scalar) const |
standard arithmetic operator More... | |
Weight | operator/ (const double &scalar) const |
standard arithmetic operator More... | |
double | operator/ (const Weight &other) const |
standard arithmetic operator More... | |
Weight | operator- () const |
standard arithmetic operator More... | |
_AD_PHYSICS_WEIGHT_EXPLICIT_CONVERSION_ | operator double () const |
conversion to base type: double More... | |
bool | isValid () const |
void | ensureValid () const |
ensure that the Weight is valid More... | |
void | ensureValidNonZero () const |
ensure that the Weight is valid and non zero More... | |
Static Public Member Functions | |
static Weight | getMin () |
get minimum valid Weight (i.e. cMinValue) | |
static Weight | getMax () |
get maximum valid Weight (i.e. cMaxValue) | |
static Weight | getPrecision () |
get assumed accuracy of Weight (i.e. cPrecisionValue) | |
Static Public Attributes | |
static const double | cMinValue |
constant defining the minimum valid Weight value (used in isValid()) | |
static const double | cMaxValue |
constant defining the maximum valid Weight value (used in isValid()) | |
static const double | cPrecisionValue |
constant defining the assumed Weight value accuracy (used in comparison operator==(), operator!=()) | |
DataType Weight.
Weight represents the mass of an object in kilogramsInputMax: Saturn V payload The unit is: Kilogram
|
inline |
default constructor
The default value of Weight is: std::numeric_limits<double>::quiet_NaN()
|
inline |
standard constructor
|
inline |
|
inline |
|
inline |
|
inline |
conversion to base type: double
|
inline |
|
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 Weight |
standard arithmetic operator
[in] | other | Other Weight |
|
inline |
standard arithmetic operator
standard arithmetic operator
[in] | other | Other Weight |
standard arithmetic operator
[in] | other | Other Weight |
|
inline |
standard arithmetic operator
[in] | scalar | Scalar double value |
|
inline |
standard arithmetic operator
[in] | other | Other Weight |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |