LlAcos/zh-Hant

From Second Life Wiki
< LlAcos
Revision as of 20:02, 7 May 2011 by Blackcan Babii (talk | contribs) (Created page with "{{LSL_Function/zh-Hant |func_id=172|func_sleep=0.0|func_energy=10.0 |func=llAcos|sort=Acos |return_type=float |p1_type=float|p1_name=val|p1_desc=must fall in the range {{Interval…")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

概要

函式: float llAcos( float val );
172 函式ID
0.0 延遲
10.0 能量

回傳一個float為val的反餘弦值。。

• float val must fall in the range [-1.0, 1.0][1]

回傳值的範圍為[0.0, PI]

範例

<lsl>// Touch the object with this script in it to see the arccosine of random numbers! default {

   touch_start(integer num)
   {
       float r = llFrand(2) - 1.0;
       llOwnerSay("The arccosine of " + (string)r + " is " + (string)llAcos(r));
   }
}</lsl>

參照

函式

• llSin llAsin sine & inverse Sine
• llCos cosine
• llTan llAtan2 tangent & inverse tangent

文章

•  "Wikipedia logo"Inverse_trigonometric_function

Deep Notes

Search JIRA for related Issues

Footnotes

  1. ^ The ranges in this article are written in Interval Notation.