class quick_haxe.Mathematics
Available on all platforms
A colletion of useful math related static methods
Class Fields
static function degreesToRadians(angle:Float):Float
Convert degrees to radians
| angle | Angle in degrees |
| returns | Angle in radians |
static function modularDifference(a:Float, b:Float, mod:Float):Float
Subtract b from a using modular/clock arithmatic
| a | Initial value |
| b | Value to Subtract |
| mod | Modulo (wrap around value) |
| returns | Angle in radians |
static function radiansToDegrees(angle:Float):Float
Convert radians to degrees
| angle | Angle in radians |
| returns | Angle in degrees |
static function random(min:Float, maxish:Float):Float
Generate a random float. Greater than or equal to the the minimum value, and less than the maximum value.
| min | The minimun to return |
| maxish | The upper value that result will get near |
| returns | A random integer |
static function randomInt(min:Float, max:Float):Int
Generate a random integer. Greater than or equal to the the minimum value, and less than or equal to the maximum value.
| min | The minimun to return |
| max | The maximum to return |
| returns | A random float |