Kanzi  3.9.9
Kanzi Engine C++ API
interpolation.hpp File Reference

Namespaces

 kanzi
 
 kanzi::interpolation
 

Functions

template<typename T , typename T2 >
constexpr T kanzi::interpolation::lerp (const T &v1, const T &v2, const T2 &phase)
 Linear interpolation between v1..v2 at phase[0..1]. More...
 
constexpr float kanzi::interpolation::lerp (float v1, float v2, float phase)
 Linear interpolation between v1..v2 at phase[0..1]. More...
 
constexpr int kanzi::interpolation::lerp (int v1, int v2, float phase)
 Linear interpolation between v1..v2 at phase[0..1]. More...
 
Matrix3x3 kanzi::interpolation::lerp (const Matrix3x3 &v1, const Matrix3x3 &v2, const Matrix3x3 &phase)
 Linear interpolation between v1..v2 at phase[0..1]. More...
 
Matrix4x4 kanzi::interpolation::lerp (const Matrix4x4 &v1, const Matrix4x4 &v2, const Matrix4x4 &phase)
 Linear interpolation between v1..v2 at phase[0..1]. More...
 
template<typename T , typename T2 >
kanzi::interpolation::linearstep (const T &v1, const T &v2, const T2 &value)
 Linearstep remapping of value between [0..1]. More...
 
float kanzi::interpolation::linearstep (float v1, float v2, float value)
 Linearstep remapping of value between [0..1]. More...
 
int kanzi::interpolation::linearstep (int v1, int v2, float value)
 Linearstep remapping of value between [0..1]. More...
 
Matrix3x3 kanzi::interpolation::linearstep (Matrix3x3 v1, Matrix3x3 v2, Matrix3x3 value)
 Component-wise linearstep remapping of value between [0..1]. More...
 
Matrix4x4 kanzi::interpolation::linearstep (Matrix4x4 v1, Matrix4x4 v2, Matrix4x4 value)
 Component-wise linearstep remapping of value between [0..1]. More...
 
constexpr float kanzi::interpolation::smootherstep (const float phase)
 Smootherstep phase between [0..1]. More...
 
template<typename T , typename T2 >
kanzi::interpolation::smootherstep (const T &v1, const T &v2, const T2 &value)
 Smootherstep-clamped remapping of value between v1 and v2 to within [0..1]. More...
 
float kanzi::interpolation::smootherstep (float v1, float v2, float value)
 Smootherstep-clamped remapping of value between v1 and v2 to within [0..1]. More...
 
int kanzi::interpolation::smootherstep (int v1, int v2, float value)
 Smootherstep-clamped remapping of value between v1 and v2 to within [0..1]. More...
 
Matrix3x3 kanzi::interpolation::smootherstep (const Matrix3x3 &v1, const Matrix3x3 &v2, const Matrix3x3 &value)
 Smootherstep-clamped remapping of value between v1 and v2 to within [0..1]. More...
 
Matrix4x4 kanzi::interpolation::smootherstep (const Matrix4x4 &v1, const Matrix4x4 &v2, const Matrix4x4 &value)
 Smootherstep-clamped remapping of value between v1 and v2 to within [0..1]. More...
 
constexpr float kanzi::interpolation::smoothstep (const float phase)
 Smoothstep phase between [0..1]. More...
 
template<typename T , typename T2 >
kanzi::interpolation::smoothstep (const T &v1, const T &v2, const T2 &value)
 Smoothstep-clamped remapping of value between v1 and v2 to within [0..1]. More...
 
float kanzi::interpolation::smoothstep (float v1, float v2, float value)
 Smoothstep-clamped remapping of value between v1 and v2 to within [0..1]. More...
 
Matrix3x3 kanzi::interpolation::smoothstep (const Matrix3x3 &v1, const Matrix3x3 &v2, const Matrix3x3 &value)
 Smoothstep-clamped remapping of value between v1 and v2 to within [0..1]. More...
 
Matrix4x4 kanzi::interpolation::smoothstep (const Matrix4x4 &v1, const Matrix4x4 &v2, const Matrix4x4 &value)
 Smoothstep-clamped remapping of value between v1 and v2 to within [0..1]. More...
 
int kanzi::interpolation::smoothstep (int v1, int v2, float value)
 Smoothstep-clamped remapping of value between v1 and v2 to within [0..1]. More...