SA-MP Forums Archive
Samp cotangent function? - 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)
+--- Thread: Samp cotangent function? (/showthread.php?tid=604702)



Samp cotangent function? - jeffery30162 - 08.04.2016

I need the function for cotan that is similar to floatsin();


Re: Samp cotangent function? - NaS - 09.04.2016

... We do have floattan, so:

Код:
cotan = 1.0/floattan(x);

or

cotan = floatcos(x) / floatsin(x);



Re: Samp cotangent function? - jeffery30162 - 10.04.2016

wow, im an idiot. 1/floattan();

I should have thought of that