Difference between revisions of "LlAcos/ja"
< LlAcos
Jump to navigation
Jump to search
Mako Nozaki (talk | contribs) m (Undo revision 851632 by Mako Nozaki (Talk)) |
|||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{LSL_Function | {{LSL_Function | ||
|func_id=172|func_sleep=0.0|func_energy=10.0 | |func_id=172|func_sleep=0.0|func_energy=10.0 | ||
|func=llAcos|sort=Acos | |func=llAcos|sort=Acos | ||
Line 8: | Line 8: | ||
|spec | |spec | ||
|caveats | |caveats | ||
|examples=< | |examples=<source lang="lsl2">// このスクリプトが入ったオブジェクトを touch すると乱数のアークコサインが表示されます。 | ||
default | default | ||
{ | { | ||
Line 16: | Line 16: | ||
llOwnerSay((string)r + " のアークコサインは " + (string)llAcos(r)); | llOwnerSay((string)r + " のアークコサインは " + (string)llAcos(r)); | ||
} | } | ||
}</ | }</source> | ||
|helpers|related | |helpers|related | ||
|also_functions= | |also_functions= |
Latest revision as of 10:57, 21 February 2016
LSL ポータル | 関数 | イベント | 型 | 演算子 | 定数 | 実行制御 | スクリプトライブラリ | カテゴリ別スクリプトライブラリ | チュートリアル |
Summary
Function: float llAcos( float val );172 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Returns a float val ラジアンのアークコサイン
• float | val | – | [-1.0, 1.0] の範囲でなければいけません。(-1.0 <= val <= 1.0) |
戻り値は [0, PI] の範囲にあります。
Caveats
Examples
// このスクリプトが入ったオブジェクトを touch すると乱数のアークコサインが表示されます。
default
{
touch_start(integer num)
{
float r = llFrand(2) - 1.0;
llOwnerSay((string)r + " のアークコサインは " + (string)llAcos(r));
}
}