Used to define clear physical unit. More...
#include <NRE_Unit.hpp>
Public Member Functions | |
constexpr | Unit () |
constexpr | Unit (double val) |
constexpr | Unit (long double val) |
constexpr double | getValue () const |
constexpr Unit< std::ratio_divide< M, std::ratio< 2 > >, std::ratio_divide< L, std::ratio< 2 > >, std::ratio_divide< T, std::ratio< 2 > >, std::ratio_divide< A, std::ratio< 2 > > > | sqrt () |
constexpr Unit const & | operator+= (Unit const &u) |
constexpr Unit const & | operator-= (Unit const &u) |
constexpr Unit | operator- () const |
constexpr Unit | operator+ (Unit const &u) const |
constexpr Unit | operator- (Unit const &u) const |
constexpr bool | operator== (Unit const &u) const |
constexpr bool | operator!= (Unit const &u) const |
constexpr bool | operator<= (Unit const &u) const |
constexpr bool | operator>= (Unit const &u) const |
constexpr bool | operator< (Unit const &u) const |
constexpr bool | operator> (Unit const &u) const |
Utility::String | toString () const |
Used to define clear physical unit.
|
inline |
Default constructor
|
inline |
Construct a unit from a value
val | the base value |
|
inline |
Construct a unit from a value
val | the base value |
|
inline |
Value getter
|
inline |
Difference test between this and u
u | the unit to test with u |
|
inline |
Compute the unit resulting in the addition of a unit to this
u | the unit to add |
|
inline |
Add a unit to this
u | the unit to add |
|
inline |
Compute the opposite unit
|
inline |
Compute the unit resulting in the subtraction of a unit to this
u | the unit to add |
|
inline |
Subtract a unit to this
u | the unit to subtract |
|
inline |
Inferior test between this and u
u | the unit to test with u |
|
inline |
Superior or Equal test between this and u
u | the unit to test with u |
|
inline |
Equality test between this and u
u | the unit to test with u |
|
inline |
Superior test between this and u
u | the unit to test with u |
|
inline |
Inferior or Equal test between this and u
u | the unit to test with u |
|
inline |
Compute the square root from the current unit
|
inline |
Convert the unit into a string