iaux::iaMath Class Reference

#include <iaMath.h>

Public Member Functions

template<>
const float32 lerp (const float32 &value1, const float32 &value2, float64 w)
 
template<>
const float64 lerp (const float64 &value1, const float64 &value2, float64 w)
 
template<>
const uint32 lerp (const uint32 &value1, const uint32 &value2, float64 w)
 
template<>
const int32 lerp (const int32 &value1, const int32 &value2, float64 w)
 
template<>
const uint64 lerp (const uint64 &value1, const uint64 &value2, float64 w)
 
template<>
const int64 lerp (const int64 &value1, const int64 &value2, float64 w)
 
template<>
const iaColor3< float32lerp (const iaColor3< float32 > &value1, const iaColor3< float32 > &value2, float64 w)
 
template<>
const iaColor3< uint8lerp (const iaColor3< uint8 > &value1, const iaColor3< uint8 > &value2, float64 w)
 
template<>
const iaColor4< float32lerp (const iaColor4< float32 > &value1, const iaColor4< float32 > &value2, float64 w)
 
template<>
const iaColor4< uint8lerp (const iaColor4< uint8 > &value1, const iaColor4< uint8 > &value2, float64 w)
 
template<>
const iaVector2< float32lerp (const iaVector2< float32 > &value1, const iaVector2< float32 > &value2, float64 w)
 
template<>
const iaVector2< float64lerp (const iaVector2< float64 > &value1, const iaVector2< float64 > &value2, float64 w)
 
template<>
const iaVector3< float32lerp (const iaVector3< float32 > &value1, const iaVector3< float32 > &value2, float64 w)
 
template<>
const iaVector3< float64lerp (const iaVector3< float64 > &value1, const iaVector3< float64 > &value2, float64 w)
 
template<>
const iaVector4< float32lerp (const iaVector4< float32 > &value1, const iaVector4< float32 > &value2, float64 w)
 
template<>
const iaVector4< float64lerp (const iaVector4< float64 > &value1, const iaVector4< float64 > &value2, float64 w)
 

Static Public Member Functions

template<typename T >
static const T lerp (const T &value1, const T &value2, float64 w)
 

Member Function Documentation

◆ lerp() [1/17]

template<>
const float32 iaux::iaMath::lerp ( const float32 value1,
const float32 value2,
float64  w 
)
inline

◆ lerp() [2/17]

template<>
const float64 iaux::iaMath::lerp ( const float64 value1,
const float64 value2,
float64  w 
)
inline

◆ lerp() [3/17]

template<>
const iaColor3< float32 > iaux::iaMath::lerp ( const iaColor3< float32 > &  value1,
const iaColor3< float32 > &  value2,
float64  w 
)
inline

◆ lerp() [4/17]

template<>
const iaColor3< uint8 > iaux::iaMath::lerp ( const iaColor3< uint8 > &  value1,
const iaColor3< uint8 > &  value2,
float64  w 
)
inline

◆ lerp() [5/17]

template<>
const iaColor4< float32 > iaux::iaMath::lerp ( const iaColor4< float32 > &  value1,
const iaColor4< float32 > &  value2,
float64  w 
)
inline

◆ lerp() [6/17]

template<>
const iaColor4< uint8 > iaux::iaMath::lerp ( const iaColor4< uint8 > &  value1,
const iaColor4< uint8 > &  value2,
float64  w 
)
inline

◆ lerp() [7/17]

template<>
const iaVector2< float32 > iaux::iaMath::lerp ( const iaVector2< float32 > &  value1,
const iaVector2< float32 > &  value2,
float64  w 
)
inline

◆ lerp() [8/17]

template<>
const iaVector2< float64 > iaux::iaMath::lerp ( const iaVector2< float64 > &  value1,
const iaVector2< float64 > &  value2,
float64  w 
)
inline

◆ lerp() [9/17]

template<>
const iaVector3< float32 > iaux::iaMath::lerp ( const iaVector3< float32 > &  value1,
const iaVector3< float32 > &  value2,
float64  w 
)
inline

◆ lerp() [10/17]

template<>
const iaVector3< float64 > iaux::iaMath::lerp ( const iaVector3< float64 > &  value1,
const iaVector3< float64 > &  value2,
float64  w 
)
inline

◆ lerp() [11/17]

template<>
const iaVector4< float32 > iaux::iaMath::lerp ( const iaVector4< float32 > &  value1,
const iaVector4< float32 > &  value2,
float64  w 
)
inline

◆ lerp() [12/17]

template<>
const iaVector4< float64 > iaux::iaMath::lerp ( const iaVector4< float64 > &  value1,
const iaVector4< float64 > &  value2,
float64  w 
)
inline

◆ lerp() [13/17]

template<>
const int32 iaux::iaMath::lerp ( const int32 value1,
const int32 value2,
float64  w 
)
inline

◆ lerp() [14/17]

template<>
const int64 iaux::iaMath::lerp ( const int64 value1,
const int64 value2,
float64  w 
)
inline

◆ lerp() [15/17]

template<typename T >
static const T iaux::iaMath::lerp ( const T &  value1,
const T &  value2,
float64  w 
)
static

linear interpolation between two values

Parameters
color1first color
color2second color
wthe weight to interpolate with

◆ lerp() [16/17]

template<>
const uint32 iaux::iaMath::lerp ( const uint32 value1,
const uint32 value2,
float64  w 
)
inline

◆ lerp() [17/17]

template<>
const uint64 iaux::iaMath::lerp ( const uint64 value1,
const uint64 value2,
float64  w 
)
inline

The documentation for this class was generated from the following files: