Rise
The Vieneo Province
MathUtilities.h File Reference

Go to the source code of this file.

Functions

float Clamp (float val, float min, float max)
 
float Lerp (float val1, float val2, float lerp)
 
D3DXVECTOR2 CalculateLatLng (D3DXVECTOR3 position)
 
float GetArcDist (D3DXVECTOR3 from, D3DXVECTOR3 to, bool includeAltDiff)
 
D3DXVECTOR3 GetArcBear (D3DXVECTOR3 vec2, float dist, float altd, D3DXVECTOR3 posnorml)
 
bool RectEquality (RECT rect1, RECT rect2)
 
float RandomFloat ()
 

Function Documentation

◆ CalculateLatLng()

D3DXVECTOR2 CalculateLatLng ( D3DXVECTOR3  position)
inline

Definition at line 17 of file MathUtilities.h.

Here is the caller graph for this function:

◆ Clamp()

float Clamp ( float  val,
float  min,
float  max 
)
inline

Definition at line 3 of file MathUtilities.h.

Here is the caller graph for this function:

◆ GetArcBear()

D3DXVECTOR3 GetArcBear ( D3DXVECTOR3  vec2,
float  dist,
float  altd,
D3DXVECTOR3  posnorml 
)
inline

Definition at line 64 of file MathUtilities.h.

Here is the caller graph for this function:

◆ GetArcDist()

float GetArcDist ( D3DXVECTOR3  from,
D3DXVECTOR3  to,
bool  includeAltDiff 
)
inline

https://coredump.sg/tag/distance-bearing-in-c/

Definition at line 37 of file MathUtilities.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Lerp()

float Lerp ( float  val1,
float  val2,
float  lerp 
)
inline

Definition at line 12 of file MathUtilities.h.

Here is the caller graph for this function:

◆ RandomFloat()

float RandomFloat ( )
inline

Definition at line 98 of file MathUtilities.h.

◆ RectEquality()

bool RectEquality ( RECT  rect1,
RECT  rect2 
)
inline

Definition at line 92 of file MathUtilities.h.

Here is the caller graph for this function: