Adds some helpful utility math functions.

This commit is contained in:
Areloch 2016-11-28 22:42:29 -06:00
parent 7af95e6a8e
commit 31ed509c1c
6 changed files with 81 additions and 0 deletions

View file

@ -155,6 +155,13 @@ namespace MathUtils
/// <b>ASSUMES Z AXIS IS UP</b>
void getVectorFromAngles( VectorF &vec, F32 yawAng, F32 pitchAng );
/// Returns the angle between two given vectors
///
/// Angles is in RADIANS
///
F32 getAngleBetweenVectors(VectorF vecA, VectorF vecB);
/// Simple reflection equation - pass in a vector and a normal to reflect off of
inline Point3F reflect( Point3F &inVec, Point3F &norm )
{