numeric
Header:
Since:
numeric.hSince:
TBCNumeric functions reverse engineered from C++ 11.
iota
template <typename TIterator, typename T>
void iota(TIterator first, TIterator last, T value);Description
Fills a range of elements with sequentially increasing values starting with value.
See std::iota
lerp
template <typename T>
T lerp(T a, T b, T t) ETL_NOEXCEPTDescription
Linear interpolation.
Returns the result of a + t(b − a).
midpoint
template <typename T>
ETL_CONSTEXPR T midpoint(T a, T b)Description
Calculates the midpoint of integers or floating-point numbers.
template <typename T>
ETL_CONSTEXPR T midpoint(T* a, T* b)Description
Calculates the midpoint of pointers.