Jamba  3.2.0
Lerp.h File Reference
#include "Misc.h"

Go to the source code of this file.

Classes

class  pongasoft::Utils::Lerp< TFloat, X, Y >
 
struct  pongasoft::Utils::Range< T >
 

Namespaces

 pongasoft
 
 pongasoft::Utils
 

Typedefs

using pongasoft::Utils::DPLerp = Lerp< double, double, double >
 
template<typename X >
using pongasoft::Utils::DPLerpX = Lerp< double, X, double >
 
template<typename X , typename Y >
using pongasoft::Utils::DPLerpXY = Lerp< double, X, Y >
 
template<typename Y >
using pongasoft::Utils::DPLerpY = Lerp< double, double, Y >
 
using pongasoft::Utils::SPLerp = Lerp< float, float, float >
 
template<typename X >
using pongasoft::Utils::SPLerpX = Lerp< float, X, float >
 
template<typename X , typename Y >
using pongasoft::Utils::SPLerpXY = Lerp< float, X, Y >
 
template<typename Y >
using pongasoft::Utils::SPLerpY = Lerp< float, float, Y >
 

Functions

template<typename X , typename Y >
static DPLerpXY< X, Y > pongasoft::Utils::mapRangeDPXY (X iFromLow, X iFromHigh, Y iToLow, Y iToHigh)
 
template<typename X , typename Y >
static SPLerpXY< X, Y > pongasoft::Utils::mapRangeSPXY (X iFromLow, X iFromHigh, Y iToLow, Y iToHigh)
 
static double pongasoft::Utils::mapValueDP (double iValue, double iFromLow, double iFromHigh, double iToLow, double iToHigh, bool iClamp=true)
 
template<typename X >
static double pongasoft::Utils::mapValueDPX (X iValue, X iFromLow, X iFromHigh, double iToLow, double iToHigh, bool iClamp=true)
 
template<typename X , typename Y >
static Y pongasoft::Utils::mapValueDPXY (X iValue, X iFromLow, X iFromHigh, Y iToLow, Y iToHigh, bool iClamp=true)
 
template<typename Y >
static Y pongasoft::Utils::mapValueDPY (double iValue, double iFromLow, double iFromHigh, Y iToLow, Y iToHigh, bool iClamp=true)
 
static float pongasoft::Utils::mapValueSP (float iValue, float iFromLow, float iFromHigh, float iToLow, float iToHigh, bool iClamp=true)
 
template<typename X >
static float pongasoft::Utils::mapValueSPX (X iValue, X iFromLow, X iFromHigh, float iToLow, float iToHigh, bool iClamp=true)
 
template<typename X , typename Y >
static Y pongasoft::Utils::mapValueSPXY (X iValue, X iFromLow, X iFromHigh, Y iToLow, Y iToHigh, bool iClamp=true)
 
template<typename Y >
static Y pongasoft::Utils::mapValueSPY (float iValue, float iFromLow, float iFromHigh, Y iToLow, Y iToHigh, bool iClamp=true)
 

Variables

constexpr auto pongasoft::Utils::mapRangeDP = mapRangeDPXY<double, double>
 
template<typename X >
constexpr auto pongasoft::Utils::mapRangeDPX = mapRangeDPXY<X, double>
 
template<typename Y >
constexpr auto pongasoft::Utils::mapRangeDPY = mapRangeDPXY<double, Y>
 
constexpr auto pongasoft::Utils::mapRangeSP = mapRangeSPXY<float, float>
 
template<typename X >
constexpr auto pongasoft::Utils::mapRangeSPX = mapRangeSPXY<X, float>
 
template<typename Y >
constexpr auto pongasoft::Utils::mapRangeSPY = mapRangeSPXY<float, Y>