numerical scale which is linear
More...
#include <core.h>
|
| template<class T> |
| static constexpr T | linearize (const T value) noexcept |
| | linearizes value
|
| template<class T> |
| static constexpr T | scale (const T value) noexcept |
| | scales value
|
numerical scale which is linear
Represents a linear numerical scale. This is the appropriate unit scale for almost all units almost all the time.
- See also
- unit
◆ linearize()
template<class T>
| constexpr T units::linear_scale::linearize |
( |
const T | value | ) |
|
|
inlinestaticconstexprnoexcept |
linearizes value
- Template Parameters
-
- Parameters
-
| [in] | value | value to linearize |
- Returns
- value
◆ scale()
template<class T>
| constexpr T units::linear_scale::scale |
( |
const T | value | ) |
|
|
inlinestaticconstexprnoexcept |
scales value
- Template Parameters
-
- Parameters
-
- Returns
- value
The documentation for this struct was generated from the following file:
- /home/runner/work/units/units/include/units/core.h