1.8 |
Creates and stores a simple ratio value. More...
Public Member Functions | |
constexpr | Ratio (T value, int ratio) noexcept |
constexpr | operator T () const |
Get the calculated ratio value. More... | |
Protected Attributes | |
int | m_ratio |
Ratio. More... | |
T | m_value |
Value. More... | |
Creates and stores a simple ratio value.
|
inlineconstexprnoexcept |
[in] | value | The value to base the ration off of. |
[in] | ratio | Ratio of value to compute. |
|
inlineconstexpr |
Get the calculated ratio value.
|
protected |
|
protected |