![]() |
WPILibC++ 2025.3.2
|
unit_t scale which is linear More...
#include <units/base.h>
Public Member Functions | |
| constexpr | linear_scale ()=default |
| default constructor. | |
| constexpr | linear_scale (const linear_scale &)=default |
| ~linear_scale ()=default | |
| linear_scale & | operator= (const linear_scale &)=default |
| template<class... Args> | |
| constexpr | linear_scale (const T &value, Args &&...) noexcept |
| constructor. | |
| constexpr T | operator() () const noexcept |
| returns value. | |
Public Attributes | |
| T | m_value |
| linearized value. | |
unit_t scale which is linear
Represents units on a linear scale. This is the appropriate unit_t scale for almost all units almost all of the time.
| T | underlying storage type |
|
constexprdefault |
default constructor.
|
constexprdefault |
|
inlinedefault |
|
inlineconstexprnoexcept |
constructor.
|
inlineconstexprnoexcept |
returns value.
|
inlinedefault |
| T units::linear_scale< T >::m_value |
linearized value.