Guest User

Untitled

a guest
Nov 24th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. $tl = _getTurnLine(45,2,2,0)
  2. MsgBox(0,"",$tl[0] & "/" & $tl[1])
  3.  
  4.  
  5.  
  6. Func _getTurnLine($a,$x,$y,$m)
  7. local $turnLine[2]
  8. $deg = 4*Atan(1) / 180
  9. $angle = $a * $deg
  10. $turnLine[0] = tan($angle + ATan($m))
  11. $turnLine[1] = ($turnLine[0] * $x) - $y
  12. return $turnLine
  13. EndFunc
Add Comment
Please, Sign In to add comment