AMCAX Kernel 1.0.0.0
|
Class for SI Base Units. More...
#include <misc/AbstructUnit.hpp>
Public Member Functions | |
AMCAX_API const UnitPrefix & | GetPrefix () const |
Get an immutable reference to the prefix of the unit. More... | |
AMCAX_API const double & | GetMultiplication () const |
Get the derived prefix of the unit. More... | |
virtual AMCAX_API double | ToBase (const double value=1.0) const |
Get the derived value of the unit. More... | |
AMCAX_API bool | IsEqual (const AbstructUnit &other, const double tol=1E-12) const |
If the AbstructUnit same as the other AbstructUnit within a tolerance. More... | |
AMCAX_API bool | IsEqualE (const AbstructUnit &other) const |
If the AbstructUnit same as the other AbstructUnit within the epsilon. More... | |
Class for SI Base Units.
AMCAX_API const double & AMCAX::AbstructUnit::GetMultiplication | ( | ) | const |
Get the derived prefix of the unit.
AMCAX_API const UnitPrefix & AMCAX::AbstructUnit::GetPrefix | ( | ) | const |
Get an immutable reference to the prefix of the unit.
AMCAX_API bool AMCAX::AbstructUnit::IsEqual | ( | const AbstructUnit & | other, |
const double | tol = 1E-12 |
||
) | const |
If the AbstructUnit same as the other AbstructUnit within a tolerance.
other | The other AbstructUnit |
tol | The tolerance to compare with |
AMCAX_API bool AMCAX::AbstructUnit::IsEqualE | ( | const AbstructUnit & | other | ) | const |
If the AbstructUnit same as the other AbstructUnit within the epsilon.
other | The other AbstructUnit |
|
virtual |
Get the derived value of the unit.
Reimplemented in AMCAX::MassUnit.