Trigonometry Conversion Operators
From GiderosMobile
Supported platforms: File:Platform androidFile:Platform iosFile:Platform macFile:Platform pc
Available since: Gideros 2017.10
Description
Operators to convert from one type of measurement to another.
^< deg Convert 'deg' into radians.
^> rad Convert 'rad' into degrees.
Examples
Simple ^< examples
r=^<d -- faster than r=math.rad(d)
radAngle=^<sprite:getRotation()
pi=^<180 -- pi is 3.142 in radians or 180 in degrees
Simple ^> examples
d=^>r -- faster than d=math.deg(r)
sprite:setRotation(^>math.sin(0.5))
Methods |
EventsConstants |