|
|
static float | acos (float n) |
| Arc cosine of n using degrees. More...
|
|
static float | asin (float n) |
| Arc sine of n using degrees. More...
|
|
static float | atan (float n) |
| Arc tangense of n using degrees. More...
|
|
static float | atan2 (float y, float x) |
| Tangense of y/x using degrees. More...
|
|
static float | cos (float x) |
| Cosine of value x using degrees. More...
|
|
static float | cosh (float x) |
| Hyperbolic cosine of value x using degrees. More...
|
|
static float | sin (float x) |
| Sinus using degrees. More...
|
|
static float | sinh (float x) |
| Hyperbolic sinus using degrees. More...
|
|
static float | tan (float x) |
| Tangense using degrees. More...
|
|
static float | tanh (float x) |
| Hhyperbolic tangense using degrees. More...
|
|
|
static float | degToRad (float degrees) |
| Convert degrees to radians. More...
|
|
static float | radToDeg (float radians) |
| Converst radians to degrees. More...
|
|
static float | linearStep (float x, float lower, float upper) |
| Linear step function clamping normalized x linearly to the range from 0 to 1. More...
|
|
static float | linearStep (float x, float lower, float upper, float mapLower, float mapUpper) |
| Linear step function clamping normalized x linearly to a new range. More...
|
|
static float | smoothStep (float x, float lower, float upper) |
| GLSL type smooth step into the range from 0 to 1. More...
|
|
static float | smoothStep (float x, float lower, float upper, float mapLower, float mapUpper) |
| GLSL type smooth step into a new rage. More...
|
|
static float | normalize (float x, float lower, float upper) |
| Normalize value into a range using wrapping around at the limits. More...
|
|
static float | normalize (float x, float upper) |
| Normalize value into a range starting at 0 using wrapping around at the limits. More...
|
|
static float | mix (float a, float b, float blend) |
| GLSL type mix. More...
|
|
static float | random () |
| Random float between 0 and 1 inclusive. More...
|
|
static int | random (int lower, int upper) |
| Random integer from range. More...
|
|
static float | random (float lower, float upper) |
| Random float from range. More...
|
|
static bool | probability (float threshold) |
| Random value in the range from 0 to 1 inclusive is less than or equal threshold. More...
|
|
Extended math support.
Extends Math from Math package from base DragonScript.
Overwrites trigonometric methods to operate on degrees instead of radians. To use radians version use Math directly.
Furthermore adds some additional methods useful for game development.
This is a native class. This class is for static use only and can not instantiated but subclassed.