Difference between revisions of "Trigonometry Functions"
Jump to navigation
Jump to search
m
→Taylor Series Variant 2
imported>JOG m (→Taylor Series Variant 2: tweaked) |
imported>JOG |
||
Line 106: | Line 106: | ||
Begin {appropriate blocktype} | Begin {appropriate blocktype} | ||
set angle to player.getangle z | set angle to player.getangle z | ||
set angle to angle + 360 * (angle < -180) | set angle to angle + 360*(angle < -180) - 360*(angle > 180) ; Normalize | ||
set t1 to angle / 57.29577951 ; precalculate powers of "angle" | set t1 to angle / 57.29577951 ; precalculate powers of "angle" | ||
set t2 to t1*t1 | set t2 to t1*t1 |