Difference between revisions of "Trigonometry Functions"

Jump to navigation Jump to search
40 bytes removed ,  12:14, 9 May 2006
m
imported>JOG
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) ; Normalize to +/- 180°
   set angle to angle + 360*(angle < -180) - 360*(angle > 180) ; Normalize
  set angle to angle - 360 * (angle > 180)
   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
Anonymous user

Navigation menu