|
morph 0.1.0
Asynchronous bridge between GUI thread and business models
|
One exact within-dimension conversion ratio between two peer units. More...
#include <quantity.hpp>
Public Attributes | |
| E | from {} |
| Source unit of the ratio. | |
| E | to {} |
| Target unit of the ratio. | |
| morph::math::Rational | fromTo {} |
| Exact ratio: 1 from == fromTo · to. Strictly positive. | |
One exact within-dimension conversion ratio between two peer units.
1 unit of from equals fromTo units of to. fromTo must be strictly positive; from and to must differ. Declared in UnitTraits<E>::relations and used in both directions (the reverse multiplies by the reciprocal).
| E | The application's unit enum type. |
Definition at line 224 of file quantity.hpp.
| E morph::units::UnitRelation< E >::from {} |
Source unit of the ratio.
Definition at line 226 of file quantity.hpp.
| E morph::units::UnitRelation< E >::to {} |
Target unit of the ratio.
Definition at line 229 of file quantity.hpp.
| morph::math::Rational morph::units::UnitRelation< E >::fromTo {} |
Exact ratio: 1 from == fromTo · to. Strictly positive.
Definition at line 232 of file quantity.hpp.