LlAcos/zh-Hant

From Second Life Wiki
Jump to navigation Jump to search

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

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

• float val – 範圍必須為[-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 Canny for related Issues

Footnotes

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