Inverse sin/cos
#1

There don't seem to be any inverse sin/cos functions.. wat do pls

EDIT: Oh wait..

pawn Код:
native Float:asin(Float:value);
native Float:acos(Float:value);
native Float:atan(Float:value);
Are these them? What's the 'a'? ;_;

EDIT2: I think the 'a' is for 'arc'.
Reply
#2

there are costume ones for Inverse Trigonomic Function
2 floats
(1) The length of the adjacent side
(2) The length of the hypotenuse side
Returns The processed inverse trigonomic equation (Float)

if that is what u want ?

edit its removed anyways
Reply
#3

atan, asin and acos are functions which gives you a value in radians.
When you get radians from it, if you want to get angle in degrees, you need to do
Код:
new Float:angle;
angle = asin(some value);
angle = angle * (180 /pi)
and from degrees to radians is
Код:
angle = angle * (pi / 180)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)