Math - globules-io/OGX.JS GitHub Wiki
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);