Companion
Properties
Functions
Returns the smallest integer greater than or equal to the specified float. This method will only properly ceil floats that are positive.
Returns the largest integer less than or equal to the specified float. This method will only properly floor floats that are positive. Note this method simply casts the float to int.
Linearly interpolates between two angles in degrees. Takes into account that angles wrap at 360 degrees and always takes the direction with the smallest delta angle.
Returns the next power of two. Returns the specified value if the value is already a power of two.
Returns random number between 0.0 (inclusive) and 1.0 (exclusive).
Returns a random number between 0 (inclusive) and the specified value (exclusive).
Returns a random number between 0 (inclusive) and the specified value (inclusive).
Returns a random number between start (inclusive) and end (exclusive).
Returns a random number between start (inclusive) and end (inclusive).
Returns a random boolean value.
Returns true if a random value between 0 and 1 is less than the specified value.
Returns -1 or 1, randomly.
Returns a triangularly distributed random number between -1.0 (exclusive) and 1.0 (exclusive), where values around zero are more likely.
Returns a triangularly distributed random number between -max
(exclusive) and max
(exclusive), where values around zero are more likely.
Returns a triangularly distributed random number between min
(inclusive) and max
(exclusive), where values around mode
are more likely.
Returns the closest integer to the specified float. This method will only properly round floats that are positive.