Static variables

@:value(2147483647)staticinlineread onlyMAX_INT:Int = 2147483647

@:value(-2147483648)staticinlineread onlyMIN_INT:Int = -2147483648

@:value(Math.PI / 180)staticdegRad:Float = Math.PI / 180

@:value(180 / Math.PI)staticradDeg:Float = 180 / Math.PI

Static methods

staticinlineclamp(value:Float, min:Float, max:Float):Float

"Clamps" a value to boundaries [min, max]. Example: clamp(2, 1, 5) == 2; clamp(0, 1, 5) == 1; clamp(6, 1, 5) == 5;

staticinlinecosDeg(degrees:Float):Float

staticinlinedegToRad(deg:Float):Float

Converts specified angle in degrees to radians.

Returns:

angle in radians (not normalized to 0...Math.PI*2)

staticinlinemaxInt(a:Int, b:Int):Int

staticinlineminInt(a:Int, b:Int):Int

staticinlineradToDeg(rad:Float):Float

Converts specified angle in radians to degrees.

Returns:

angle in degrees (not normalized to 0...360)

staticinlinerandom(max:Int):Int

staticinlinesignum(value:Float):Int

staticinlinesinDeg(degrees:Float):Float