DEKI/ENGINE docs
Deki 0.19.0
Modular C++ 2D engine for embedded displays and desktop
Loading...
Searching...
No Matches
Math.h File Reference

Namespaces

namespace  Deki
namespace  Deki::Math

Functions

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

Variables

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