Don't click here unless you want to be banned.

LSL Wiki : llTan

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are crawl836.us.archive.org
float llTan(float theta)

Returns the tangent of theta radians.

Compare with llAtan2.

To get the Arc Tangent do this:
(In case you know all three sides of a triangle and need to know an angle)
float fTemp = opposite leg / adjacent leg
float fAtan = llAsin( fTemp / (llSqrt((llPow(fTemp ,2.0)+1.0))) );
Don't ask me, why this function wasn't included in LSL. :) -- Abdiel Nimbus


This article wasn't helpful for you? Maybe the related article at the LSL Portal is able to bring enlightenment.

Functions | Math
Comments [Hide comments/form]
To get the Arc Tangent do this:
(In case you know all three sides of a triangle and need to know an angle)
float fTemp = opposite leg / adjacent leg
float fAtan = llAsin( fTemp / (llSqrt((llPow(fTemp ,2.0)+1.0))) );
Don't ask me, why this function wasn't included in LSL. :) -- Abdiel Nimbus
-- port-83-236-176-115.static.qsc.de (2007-04-30 03:21:02)
Attach a comment to this page: