Skip to content
Eric edited this page Sep 27, 2024 · 5 revisions

OGX.Math is a static helper class. There is no need to create an instance of this class.

Dist

Calculate distance between 2 points

 OGX.Math.dist(__ptA, __ptB);

Angle

Calculate angle between 2 points

 OGX.Math.angle(__ptA, __ptB);

Rotate

Rotate a vector

 OGX.Math.rotate(__vec, __angle);

Clone this wiki locally