Pioneer
Loading...
Searching...
No Matches
Functions
MathUtil Namespace Reference

Functions

vector3d RandomPointOnSphere (double minRadius, double maxRadius)
 
vector3d RandomPointInCircle (double minRadius, double maxRadius)
 
matrix4x4f Inverse (const matrix4x4f &cell)
 
matrix4x4f InverseSlow (const matrix4x4f &cell)
 
matrix4x4f Transpose (const matrix4x4f &cell)
 
matrix3x3f Transpose (const matrix3x3f &cell)
 
matrix3x3f Inverse (const matrix3x3f &cell)
 
float DistanceFromLineSegment (const vector3f &start, const vector3f &end, const vector3f &pos, bool &isWithinLineSegment)
 
float DistanceFromLine (const vector3f &start, const vector3f &end, const vector3f &pos)
 
vector3d RandomPointOnSphere (double radius)
 
vector3d RandomPointInCircle (double radius)
 
vector3d RandomPointOnCircle (double radius)
 
template<class T , class F >
mix (const T &v1, const T &v2, const F t)
 
template<class T , class F >
Lerp (const T &v1, const T &v2, const F t)
 
float Dot (const vector3f &a, const vector3f &b)
 
template<typename T >
vector3< T > OrthogonalDirection (const vector3< T > &a)
 

Function Documentation

◆ DistanceFromLine()

float MathUtil::DistanceFromLine ( const vector3f start,
const vector3f end,
const vector3f pos 
)
Here is the call graph for this function:

◆ DistanceFromLineSegment()

float MathUtil::DistanceFromLineSegment ( const vector3f start,
const vector3f end,
const vector3f pos,
bool &  isWithinLineSegment 
)
Here is the call graph for this function:

◆ Dot()

float MathUtil::Dot ( const vector3f a,
const vector3f b 
)
inline

◆ Inverse() [1/2]

matrix3x3f MathUtil::Inverse ( const matrix3x3f cell)

◆ Inverse() [2/2]

matrix4x4f MathUtil::Inverse ( const matrix4x4f cell)

◆ InverseSlow()

matrix4x4f MathUtil::InverseSlow ( const matrix4x4f cell)
Here is the call graph for this function:

◆ Lerp()

template<class T , class F >
T MathUtil::Lerp ( const T &  v1,
const T &  v2,
const F  t 
)
inline
Here is the call graph for this function:

◆ mix()

template<class T , class F >
T MathUtil::mix ( const T &  v1,
const T &  v2,
const F  t 
)
inline

◆ OrthogonalDirection()

template<typename T >
vector3< T > MathUtil::OrthogonalDirection ( const vector3< T > &  a)
Here is the call graph for this function:

◆ RandomPointInCircle() [1/2]

vector3d MathUtil::RandomPointInCircle ( double  minRadius,
double  maxRadius 
)
Here is the call graph for this function:

◆ RandomPointInCircle() [2/2]

vector3d MathUtil::RandomPointInCircle ( double  radius)
inline
Here is the call graph for this function:

◆ RandomPointOnCircle()

vector3d MathUtil::RandomPointOnCircle ( double  radius)
inline
Here is the call graph for this function:

◆ RandomPointOnSphere() [1/2]

vector3d MathUtil::RandomPointOnSphere ( double  minRadius,
double  maxRadius 
)
Here is the call graph for this function:

◆ RandomPointOnSphere() [2/2]

vector3d MathUtil::RandomPointOnSphere ( double  radius)
inline
Here is the call graph for this function:

◆ Transpose() [1/2]

matrix3x3f MathUtil::Transpose ( const matrix3x3f cell)

◆ Transpose() [2/2]

matrix4x4f MathUtil::Transpose ( const matrix4x4f cell)