The MathUtil class provides helper functions for calculations such as interpolation and trigonometric functions.
More...
#include <mathutil.h>
|
static float | deg2rad (float degrees) |
|
static float | rad2deg (float radians) |
|
static float | cosDeg (float degrees) |
|
static float | clamp (float min, float max, float x) |
|
static float | mix (float v0, float v1, float f) |
|
static float | linstep (float e0, float e1, float x) |
|
static float | smoothstep (float e0, float e1, float x) |
|
static float | distance (float x0, float y0, float x1, float y1) |
|
static QVector3D | mix (const QVector3D &v0, const QVector3D &v1, float f) |
|
|
static const float | PI = atan(1.0f) * 4.0f |
|
The MathUtil class provides helper functions for calculations such as interpolation and trigonometric functions.
terminus::MathUtil::MathUtil |
( |
| ) |
|
virtual terminus::MathUtil::~MathUtil |
( |
| ) |
|
|
pure virtual |
float terminus::MathUtil::clamp |
( |
float |
min, |
|
|
float |
max, |
|
|
float |
x |
|
) |
| |
|
static |
float terminus::MathUtil::cosDeg |
( |
float |
degrees | ) |
|
|
static |
float terminus::MathUtil::deg2rad |
( |
float |
degrees | ) |
|
|
static |
float terminus::MathUtil::distance |
( |
float |
x0, |
|
|
float |
y0, |
|
|
float |
x1, |
|
|
float |
y1 |
|
) |
| |
|
static |
float terminus::MathUtil::linstep |
( |
float |
e0, |
|
|
float |
e1, |
|
|
float |
x |
|
) |
| |
|
static |
float terminus::MathUtil::mix |
( |
float |
v0, |
|
|
float |
v1, |
|
|
float |
f |
|
) |
| |
|
static |
QVector3D terminus::MathUtil::mix |
( |
const QVector3D & |
v0, |
|
|
const QVector3D & |
v1, |
|
|
float |
f |
|
) |
| |
|
static |
float terminus::MathUtil::rad2deg |
( |
float |
radians | ) |
|
|
static |
float terminus::MathUtil::smoothstep |
( |
float |
e0, |
|
|
float |
e1, |
|
|
float |
x |
|
) |
| |
|
static |
const float terminus::MathUtil::PI = atan(1.0f) * 4.0f |
|
static |
The documentation for this class was generated from the following files: