Difference between revisions of "ESM Math Library"

Jump to navigation Jump to search
18 bytes added ,  18:28, 19 May 2006
getAngle -> getVectorAngle
imported>JustTim
(another cool one: I've added a Math Library ESM for VERY easy stage function use.)
imported>JustTim
(getAngle -> getVectorAngle)
set myResult to f.fout</pre>
 
=== Stage 30: getAnglegetVectorAngle ===
Takes the X and Y dimension of a 2D Vector as two floats.<br>
Returns the Angle of the Vector in DEGREES as a float.<br>
 
Code to include in FunctionQuestScript:
<pre>;S30 FUNCTION getAnglegetVectorAngle
float tan
float ang</pre>
 
Code for the Stage Result Script:
<pre>;FUNCTION float getAnglegetVectorAngle(float x, float y)
 
if f.fin1 == 0
Anonymous user

Navigation menu