DEKI/ENGINE docs
manual api reference
Deki 0.40.1
Modular C++ engine with a visual editor, for 2D and 3D
Loading...
Searching...
No Matches
Deki::Math Namespace Reference

Functions

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

Variables

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

Function Documentation

◆ Abs()

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

◆ Clamp()

float Deki::Math::Clamp ( float v,
float lo,
float hi )
inline

◆ Lerp()

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

◆ Max()

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

◆ Min()

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

Variable Documentation

◆ kDegToRad

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

◆ kHalfPi

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

◆ kPi

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

◆ kRadToDeg

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

◆ kTwoPi

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