Differences

This shows you the differences between two versions of the page.

Link to this comparison view

wiki:scripting_portal:lsl_functions:llasin [2018/11/20 17:21]
Royale Mobian created
wiki:scripting_portal:lsl_functions:llasin [2019/07/19 21:41] (current)
Royale Mobian
Line 1: Line 1:
 ====== llAsin ====== ====== llAsin ======
-===== Introduction ===== +**[[wiki:scripting_portal:​lsl_functions|Function]]:​ [[wiki:​scripting_portal:​lsl_types:​float|float]] llAsin( [[wiki:​scripting_portal:​lsl_types:​float|float]] val );** 
- +Returns a float that is the arcsine in [[wiki:​scripting_portal:​radians|radians]] of **val** 
- +  * float val – must fall in the range [-1.0, 1.0]
-==== Example use cases==== +
- +
  
 +The returned value is in the range [-[[wiki:​scripting_portal:​lsl_functions:​ll_constants:​pi_by_two|PI_BY_TWO]],​ PI_BY_TWO]
 ===== Examples ===== ===== Examples =====
- 
 <code ossl> <code ossl>
 +// Touch the object with this script in it to see the arcsine of random numbers!
 +default
 +{
 +    touch_start(integer num)
 +    {
 +        float r = llFrand(2) - 1.0;
 +        llOwnerSay("​The arcsine of " + (string)r + " is " + (string)llAsin(r));​
 +    }
 +}
 +</​code>​
  
-</code>+===== See Also ===== 
 +==== Functions ==== 
 +  * [[wiki:​scripting_portal:​lsl_functions:​llSin|llSin]] – sine  
 +  * [[wiki:​scripting_portal:​lsl_functions:​llCos|llCos]] [[wiki:​scripting_portal:​lsl_functions:​llAcos|llAcos]] – cosine & inverse cosine  
 +  * [[wiki:​scripting_portal:​lsl_functions:​llTan|llTan]] [[wiki:​scripting_portal:​lsl_functions:​llAtan2|llAtan2]] – tangent & inverse tangent  
 +==== Articles ==== 
 +  * [[http://​en.wikipedia.org/​wiki/​Inverse_trigonometric_function|Wikipedia:​Inverse trigonometric function]]
QR Code
QR Code wiki:scripting_portal:lsl_functions:llasin (generated for current page)