asin, acos, atan - 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 (
/showthread.php?tid=216548)
asin, acos, atan (Solved) -
smeti - 25.01.2011
How to?
pawn Код:
new
Float:Sinus = floatsin(60, degrees);
printf("%f", Sinus); // 0.866025
// printf("%f", asin(0.866025)); ? // 60
a-samp.inc:
native Float:asin(Float:value);
native Float:acos(Float:value);
native Float:atan(Float:value);
native Float:atan2(Float
, Float:y);
Re: asin, acos, atan -
Mauzen - 25.01.2011
Whats wrong with this?
If it returns 60 everything is fine, if not, what does it return (im too lazy to check it atm)?
Re: asin, acos, atan -
smeti - 25.01.2011
Quote:
Originally Posted by Mauzen
Whats wrong with this?
If it returns 60 everything is fine, if not, what does it return (im too lazy to check it atm)?
|
How to
?
****** translate:
I can not find the Pawn language acos asin atan functions.
Re: asin, acos, atan -
Grim_ - 25.01.2011
https://sampwiki.blast.hk/wiki/Floatsin
https://sampwiki.blast.hk/wiki/Floatcos
https://sampwiki.blast.hk/wiki/Floattan
You will need to ****** sin, cosine and tangent functions in general to understand their purpose. They are mathematical functions to return certain values determined on the value given - I'm way to lazy to describe how and why it returns what it does. That is where ****** comes in handy.
Re: asin, acos, atan -
smeti - 25.01.2011
No sin cos tan.
Pawn function asin acos atan?
How many degrees asin(0.866025) ?
Solved:
a-samp.inc:
native Float:asin(Float:value);
native Float:acos(Float:value);
native Float:atan(Float:value);
native Float:atan2(Float, Float:y);