DEKI/ENGINE docs
Deki 0.19.0
Modular C++ 2D engine for embedded displays and desktop
Loading...
Searching...
No Matches
Deki::Math 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 Deki::Math::Clamp ( float v,
float lo,
float hi )
inline

◆ Min()

float Deki::Math::Min ( float a,
float b )
inline

◆ Max()

float Deki::Math::Max ( float a,
float b )
inline

◆ Abs()

float Deki::Math::Abs ( float v)
inline

◆ Lerp()

float Deki::Math::Lerp ( float a,
float b,
float t )
inline

Variable Documentation

◆ kPi

float Deki::Math::kPi = 3.14159265358979323846f
constexpr

◆ kTwoPi

float Deki::Math::kTwoPi = 2.0f * kPi
constexpr

◆ kHalfPi

float Deki::Math::kHalfPi = 0.5f * kPi
constexpr

◆ kDegToRad

float Deki::Math::kDegToRad = kPi / 180.0f
constexpr

◆ kRadToDeg

float Deki::Math::kRadToDeg = 180.0f / kPi
constexpr