Math Object

See Also Properties Methods Events Model
World
Math

Exposes useful math functions.

Using the Math Object

The AngleUnits property of the Math object can be used to change the assumed units (degrees or radians) for all angle-type arguments.

Example

The following example uses the PI property of the Math object to converts the angle returned by the AngleTo method from degrees to radians.

angleinradians = Bot.AngleTo(World.Screen.Center)*World.Math.PI/180.0