#include "matrix3x3.h"
#include "matrix4x4.h"
#include "vector3.h"
#include "fixed.h"
#include <cmath>
Go to the source code of this file.
|
| template<class T > |
| const T & | Clamp (const T &x, const T &min, const T &max) |
| |
| constexpr double | DEG2RAD (double x) |
| |
| constexpr float | DEG2RAD (float x) |
| |
| constexpr double | RAD2DEG (double x) |
| |
| constexpr float | RAD2DEG (float x) |
| |
| vector3d | MathUtil::RandomPointOnSphere (double minRadius, double maxRadius) |
| |
| vector3d | MathUtil::RandomPointOnSphere (double radius) |
| |
| vector3d | MathUtil::RandomPointInCircle (double minRadius, double maxRadius) |
| |
| vector3d | MathUtil::RandomPointInCircle (double radius) |
| |
| vector3d | MathUtil::RandomPointOnCircle (double radius) |
| |
| template<class T , class F > |
| T | MathUtil::mix (const T &v1, const T &v2, const F t) |
| |
| template<class T , class F > |
| T | MathUtil::Lerp (const T &v1, const T &v2, const F t) |
| |
| float | MathUtil::Dot (const vector3f &a, const vector3f &b) |
| |
| template<typename T > |
| vector3< T > | MathUtil::OrthogonalDirection (const vector3< T > &a) |
| |
| matrix4x4f | MathUtil::Inverse (const matrix4x4f &cell) |
| |
| matrix4x4f | MathUtil::InverseSlow (const matrix4x4f &cell) |
| |
| matrix4x4f | MathUtil::Transpose (const matrix4x4f &cell) |
| |
| matrix3x3f | MathUtil::Inverse (const matrix3x3f &cell) |
| |
| matrix3x3f | MathUtil::Transpose (const matrix3x3f &cell) |
| |
| float | MathUtil::DistanceFromLineSegment (const vector3f &start, const vector3f &end, const vector3f &pos, bool &isWithinLineSegment) |
| |
| float | MathUtil::DistanceFromLine (const vector3f &start, const vector3f &end, const vector3f &pos) |
| |
◆ Clamp()
template<class T >
| const T & Clamp |
( |
const T & |
x, |
|
|
const T & |
min, |
|
|
const T & |
max |
|
) |
| |
|
inline |
◆ DEG2RAD() [1/2]
| constexpr double DEG2RAD |
( |
double |
x | ) |
|
|
inlineconstexpr |
◆ DEG2RAD() [2/2]
| constexpr float DEG2RAD |
( |
float |
x | ) |
|
|
inlineconstexpr |
◆ RAD2DEG() [1/2]
| constexpr double RAD2DEG |
( |
double |
x | ) |
|
|
inlineconstexpr |
◆ RAD2DEG() [2/2]
| constexpr float RAD2DEG |
( |
float |
x | ) |
|
|
inlineconstexpr |