![]() |
1.11 |
Creates and stores a simple ratio value. More...
#include <utils.h>
Public Member Functions | |
| constexpr | Ratio (T value, int ratio) noexcept |
| constexpr | operator T () const |
| Get the calculated ratio value. | |
Protected Attributes | |
| int | m_ratio |
| Ratio. | |
| T | m_value |
| Value. | |
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 |