Atlantis.MathHelpers Class
Item Index
Methods
clamp
()
distance
()
isPowerOfTwo
()
lerp
()
toDegrees
()
toRadians
()
Attributes
Pi
Number
readonly
Gets PI value.
Fires event PiChange
Fires when the value for the configuration attribute Pi
is
changed. You can listen for the event using the on
method if you
wish to be notified before the attribute's value has changed, or
using the after
method if you wish to be notified after the
attribute's value has changed.
Parameters:
-
e
EventFacadeAn Event Facade object with the following attribute-specific properties added:
PiOver2
Number
readonly
Gets PI over 2 value.
Fires event PiOver2Change
Fires when the value for the configuration attribute PiOver2
is
changed. You can listen for the event using the on
method if you
wish to be notified before the attribute's value has changed, or
using the after
method if you wish to be notified after the
attribute's value has changed.
Parameters:
-
e
EventFacadeAn Event Facade object with the following attribute-specific properties added:
PiOver4
Number
readonly
Gets PI over 4 value.
Fires event PiOver4Change
Fires when the value for the configuration attribute PiOver4
is
changed. You can listen for the event using the on
method if you
wish to be notified before the attribute's value has changed, or
using the after
method if you wish to be notified after the
attribute's value has changed.
Parameters:
-
e
EventFacadeAn Event Facade object with the following attribute-specific properties added:
TwoPi
Number
readonly
Gets PI * 2 value.
Fires event TwoPiChange
Fires when the value for the configuration attribute TwoPi
is
changed. You can listen for the event using the on
method if you
wish to be notified before the attribute's value has changed, or
using the after
method if you wish to be notified after the
attribute's value has changed.
Parameters:
-
e
EventFacadeAn Event Facade object with the following attribute-specific properties added: