Difference between revisions of "LlTan"
Jump to navigation
Jump to search
m |
m (Emphasized parameter name) |
||
Line 5: | Line 5: | ||
|p1_type=float|p1_name=theta|p1_desc=angle expressed in radians. | |p1_type=float|p1_name=theta|p1_desc=angle expressed in radians. | ||
|return_type=float | |return_type=float | ||
|return_text=that is the tangent of theta. | |return_text=that is the tangent of '''theta'''. | ||
|spec | |spec | ||
|caveats | |caveats | ||
Line 22: | Line 22: | ||
{{LSL DefineRow|[[llSin]]|[[llAsin]]|sine & inverse Sine}} | {{LSL DefineRow|[[llSin]]|[[llAsin]]|sine & inverse Sine}} | ||
{{LSL DefineRow|[[llCos]]|[[llAcos]]|cosine & inverse cosine}} | {{LSL DefineRow|[[llCos]]|[[llAcos]]|cosine & inverse cosine}} | ||
{{LSL DefineRow||[[llAtan2]]| | {{LSL DefineRow||[[llAtan2]]|inverse tangent}} | ||
|also_events | |also_events | ||
|also_articles | |also_articles |
Revision as of 05:42, 13 April 2009
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: float llTan( float theta );2 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Returns a float that is the tangent of theta.
• float | theta | – | angle expressed in radians. |
Caveats
Examples
<lsl>// Touch the object with this script in it to see the tangent of random numbers! default {
touch_start(integer num) { float r = llFrand(TWO_PI); llOwnerSay("The tangent of " + (string)r + " in radians or " + (string)(r * RAD_TO_DEG) + " in degrees is " + (string)llTan(r)); }}</lsl>