asin, acos, atan, atan2 funcs? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: asin, acos, atan, atan2 funcs? (
/showthread.php?tid=105173)
asin, acos, atan, atan2 funcs? -
xomka - 28.10.2009
Those are not documented on wiki. Are they trigonometric? What do they do?
Re: asin, acos, atan, atan2 funcs? -
dice7 - 28.10.2009
arcus sinus, arcus cosinus, arcus tanges, arcus tanges 2 (x, y)
Example for atan2
pawn Code:
new
Float:x = -10.0,
Float:y = 10.0,
Float:result;
result = atan2 (y,x) * 180 / 3.1415;
printf ("The arc tangent for (x=%lf, y=%lf) is %lf degrees\n", x, y, result );