Rise
The Vieneo Province
Loading...
Searching...
No Matches
MathUtilities.h File Reference

Go to the source code of this file.

Functions

template<typename T1, typename T2, typename T3>
constexpr auto Clamp (T1 val, T2 min, T3 max)
float Lerp (float val1, float val2, float lerp)
RiseMath::Vector2 CalculateLatLng (RiseMath::Vector3 position)
float GetArcDist (RiseMath::Vector3 from, RiseMath::Vector3 to, bool includeAltDiff)
RiseMath::Vector3 GetArcBear (RiseMath::Vector3 vec2, float dist, float altd, RiseMath::Vector3 posnorml)
bool RectEquality (RECT rect1, RECT rect2)
float RandomFloat ()

Function Documentation

◆ CalculateLatLng()

RiseMath::Vector2 CalculateLatLng ( RiseMath::Vector3 position)
inline

Definition at line 21 of file MathUtilities.h.

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

◆ Clamp()

template<typename T1, typename T2, typename T3>
auto Clamp ( T1 val,
T2 min,
T3 max )
inlineconstexpr

Definition at line 4 of file MathUtilities.h.

Here is the call graph for this function:

◆ GetArcBear()

RiseMath::Vector3 GetArcBear ( RiseMath::Vector3 vec2,
float dist,
float altd,
RiseMath::Vector3 posnorml )
inline

Definition at line 65 of file MathUtilities.h.

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

◆ GetArcDist()

float GetArcDist ( RiseMath::Vector3 from,
RiseMath::Vector3 to,
bool includeAltDiff )
inline

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

Definition at line 38 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 16 of file MathUtilities.h.

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

◆ RandomFloat()

float RandomFloat ( )
inline

Definition at line 100 of file MathUtilities.h.

Here is the call graph for this function:

◆ RectEquality()

bool RectEquality ( RECT rect1,
RECT rect2 )
inline

Definition at line 94 of file MathUtilities.h.

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