Navigation
Addons
Plugins
Navigation
Addons
Plugins
The mathex library exposes more functions to the built-in Lua math library.
The following functions are exposed by this library:
number Distance2D(number x1, number y1, number x2, number y2);
number Distance3D(number x1, number y1, number z1, number x2, number y2, number z2);
number DegreeToRadian(number deg);
number RadianToDegree(number rad);
number Clamp(number num, number l, number h);
number Round(number num, number dp);
number ToD3DColor(number a, number r, number g, number b);