15 static const float PI;
18 static float deg2rad(
float degrees);
19 static float rad2deg(
float radians);
20 static float cosDeg(
float degrees);
22 static float clamp(
float min,
float max,
float x);
23 static float mix(
float v0,
float v1,
float f);
24 static float linstep(
float e0,
float e1,
float x);
25 static float smoothstep(
float e0,
float e1,
float x);
26 static float distance(
float x0,
float y0,
float x1,
float y1);
28 static QVector3D
mix(
const QVector3D & v0,
const QVector3D & v1,
float f);
static const float PI
Definition: mathutil.h:15
static float rad2deg(float radians)
Definition: mathutil.cpp:21
static float deg2rad(float degrees)
Definition: mathutil.cpp:16
static float linstep(float e0, float e1, float x)
Definition: mathutil.cpp:35
static float mix(float v0, float v1, float f)
Definition: mathutil.cpp:11
static float clamp(float min, float max, float x)
Definition: mathutil.cpp:31
static float cosDeg(float degrees)
Definition: mathutil.cpp:26
static float distance(float x0, float y0, float x1, float y1)
Definition: mathutil.cpp:46
Definition: eventhandler.cpp:18
The MathUtil class provides helper functions for calculations such as interpolation and trigonometric...
Definition: mathutil.h:12
MathUtil()
Definition: mathutil.cpp:57
static float smoothstep(float e0, float e1, float x)
Definition: mathutil.cpp:40