Class MathHelper



The MathHelper class is a collection of static functions and constants related to 3D programming.


static MHFloat degToRad(void)

Multiplying a value by this constant will convert it from degrees to radians.


static MHFloat shortAngleDistance(MHFloat angle1, MHFloat angle2)

Given a system where angles vary from 180 to -180, returns the smallest distance between two angles. So, if angle1 is 175, and angle2 is -170, it returns 15.


static MHFloat radToDeg(void)

Multiplying a value by this constant will convert it from radians to degrees.











Back to Contents