14 static constexpr
float PI = 3.141592653589793238462643383279502884197169399375105820974944592307;
27 static constexpr
inline T
clamp(T v, T low, T high) {
30 }
else if (v > high) {
43 static constexpr
inline T
sign(T v) {
54 constexpr
inline float deg(
float rad) {
58 constexpr
inline float rad(
float deg) {
Definition: GameController.hpp:7
constexpr float rad(float deg)
Definition: Math.hpp:58
static constexpr float RAD_TO_DEG
Definition: Math.hpp:16
Definition: Vector4f.hpp:117
Math helper class.
Definition: Math.hpp:12
constexpr float deg(float rad)
Definition: Math.hpp:54
static constexpr float PI
Definition: Math.hpp:14
static constexpr T sign(T v)
Returns the sign of value.
Definition: Math.hpp:43
static constexpr float DEG_TO_RAD
Definition: Math.hpp:15
static Vector3f toDirection(const Quaternion &orientation)
Definition: Math.cpp:10
static Vector3f toEuler(const Vector3f &direction)
Definition: Math.cpp:14
3-dimensional float-based vector/point storage and manipulation struct
Definition: Vector3f.hpp:27
static constexpr T clamp(T v, T low, T high)
Restricts a value to a range.
Definition: Math.hpp:27