![]() TGE Version 1.5.2 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
MathUtils Namespace ReferenceDetailed DescriptionMiscellaneous math utility functions.
Function DocumentationCreates orientation matrix from a direction vector. Assumes ( 0 0 1 ) is up.
Creates random direction given angle parameters similar to the particle system. The angles are relative to the specified axis. Both phi and theta are in degrees. Returns yaw and pitch angles from a given vector. Angles are in RADIANS. Assumes north is (0.0, 1.0, 0.0), the degrees move upwards clockwise. The range of yaw is 0 - 2PI. The range of pitch is -PI/2 - PI/2. ASSUMES Z AXIS IS UP Returns vector from given yaw and pitch angles. Angles are in RADIANS. Assumes north is (0.0, 1.0, 0.0), the degrees move upwards clockwise. The range of yaw is 0 - 2PI. The range of pitch is -PI/2 - PI/2. ASSUMES Z AXIS IS UP
|