asin, acos, atan
#1

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);
Reply
#2

Whats wrong with this?
If it returns 60 everything is fine, if not, what does it return (im too lazy to check it atm)?
Reply
#3

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.
Reply
#4

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.
Reply
#5

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);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)