Math Property

See Also Applies To Example Model

Returns the Math object.

Remarks

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