Difference between revisions of "LlTan/ja"

From Second Life Wiki
Jump to navigation Jump to search
m (カテゴリ変更)
 
(One intermediate revision by one other user not shown)
Line 9: Line 9:
|caveats
|caveats
|constants
|constants
|examples=<lsl>// このスクリプトが入ったオブジェクトを touch すると乱数のタンジェントが表示されます。
|examples=<source lang="lsl2">// このスクリプトが入ったオブジェクトを touch すると乱数のタンジェントが表示されます。
default
default
{
{
Line 17: Line 17:
         llOwnerSay((string)r + " ラジアンもしくは " + (string)(r * RAD_TO_DEG) + " 度のタンジェントは " + (string)llTan(r));
         llOwnerSay((string)r + " ラジアンもしくは " + (string)(r * RAD_TO_DEG) + " 度のタンジェントは " + (string)llTan(r));
     }
     }
}</lsl>
}</source>
|helpers
|helpers
|also_functions=
|also_functions=
Line 27: Line 27:
|also_tests
|also_tests
|notes
|notes
|cat1=Math/Trigonometry/ja
|cat1=Math/Trigonometry
|cat2
|cat2
|cat3
|cat3
|cat4
|cat4
}}
}}

Latest revision as of 15:48, 25 February 2016

要約

関数: float llTan( float theta );

theta のタンジェントを float で返します。

• float theta ラジアンで表現された角度

サンプル

// このスクリプトが入ったオブジェクトを touch すると乱数のタンジェントが表示されます。
default
{
    touch_start(integer num)
    {
        float r = llFrand(TWO_PI);
        llOwnerSay((string)r + " ラジアンもしくは " + (string)(r * RAD_TO_DEG) + " 度のタンジェントは " + (string)llTan(r));
    }
}

関連項目

関数

• llSin llAsin サインとその逆関数
• llCos llAcos コサインとその逆関数
•  llAtan2 アークタンジェント

特記事項

Search JIRA for related Issues

Signature

function float llTan( float theta );
この翻訳は 原文 と比べて古いですか?間違いがありますか?読みにくいですか?みんなで 修正 していきましょう! (手順はこちら)
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。