Unit Conversion and Dimensional Analysis Library 3.6.1
A compile-time, header-only C++23 dimensional-analysis library
Loading...
Searching...
No Matches
units::linear_scale Struct Reference

numerical scale which is linear More...

#include <core.h>

Inheritance diagram for units::linear_scale:
[legend]

Static Public Member Functions

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

Detailed Description

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

Member Function Documentation

◆ linearize()

template<class T>
constexpr T units::linear_scale::linearize ( const T value)
inlinestaticconstexprnoexcept

linearizes value

Template Parameters
Tunderlying type of unit
Parameters
[in]valuevalue to linearize
Returns
value

◆ scale()

template<class T>
constexpr T units::linear_scale::scale ( const T value)
inlinestaticconstexprnoexcept

scales value

Template Parameters
Tunderlying type of unit
Parameters
[in]valuevalue to scale
Returns
value

The documentation for this struct was generated from the following file:
  • /home/runner/work/units/units/include/units/core.h