Deki 1.3.0
Modular C++ 2D engine for embedded displays and desktop
Loading...
Searching...
No Matches
DekiMath Namespace Reference

Functions

float Clamp (float v, float lo, float hi)
float Min (float a, float b)
float Max (float a, float b)
float Abs (float v)
float Lerp (float a, float b, float t)

Variables

constexpr float kPi = 3.14159265358979323846f
constexpr float kTwoPi = 2.0f * kPi
constexpr float kHalfPi = 0.5f * kPi
constexpr float kDegToRad = kPi / 180.0f
constexpr float kRadToDeg = 180.0f / kPi

Function Documentation

◆ Clamp()

float DekiMath::Clamp ( float v,
float lo,
float hi )
inline

◆ Min()

float DekiMath::Min ( float a,
float b )
inline

◆ Max()

float DekiMath::Max ( float a,
float b )
inline

◆ Abs()

float DekiMath::Abs ( float v)
inline

◆ Lerp()

float DekiMath::Lerp ( float a,
float b,
float t )
inline

Variable Documentation

◆ kPi

float DekiMath::kPi = 3.14159265358979323846f
constexpr

◆ kTwoPi

float DekiMath::kTwoPi = 2.0f * kPi
constexpr

◆ kHalfPi

float DekiMath::kHalfPi = 0.5f * kPi
constexpr

◆ kDegToRad

float DekiMath::kDegToRad = kPi / 180.0f
constexpr

◆ kRadToDeg

float DekiMath::kRadToDeg = 180.0f / kPi
constexpr