mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 06:34:36 +00:00
Adds some helpful utility math functions.
This commit is contained in:
parent
7af95e6a8e
commit
31ed509c1c
6 changed files with 81 additions and 0 deletions
|
|
@ -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 )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue