Documentation

Math

Namespace

Math functions and structures.

Pi as a float.

Pi multiplied by 2 as a float.

Pi as a double.

Pi multiplied by 2 as a double.

Positive infinity as a float.

Negative infinity as a float.

Positive infinity as a double.

Negative infinity as a double.

A randomizer that can be seeded with a specific seed. The default constructor uses the seed 5489.

Returns int
Returns float
Returns float
Returns float
Returns float
Returns float

Generate a random floating point value between min (inclusive) and max (exclusive).

Returns float

Generate a random integer between min (inclusive) and max (exclusive).

Returns int
Returns float

Returns x or y, whichever is lower.

Returns int

Returns x or y, whichever is lower.

Returns float

Returns x or y, whichever is higher.

Returns int

Returns x or y, whichever is higher.

Returns float

Clamps the value x between min and max. Throws an exception when min is higher than max.

Returns int

Clamps the value x between min and max. Throws an exception when min is higher than max.

Returns float