llAcos/ja
< LlAcos
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.
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));
}
}