Difference between revisions of "LlRot2Angle/ja"

From Second Life Wiki
Jump to navigation Jump to search
m (カテゴリ変更)
 
(3 intermediate revisions by 2 users not shown)
Line 3: Line 3:
|func=llRot2Angle|sort=Rot2Angle
|func=llRot2Angle|sort=Rot2Angle
|return_type=float|p1_type=rotation|p1_name=rot
|return_type=float|p1_type=rotation|p1_name=rot
|func_footnote=[[llRot2Axis/ja|llRot2Axis]]とあわせて使います。<br/>元に戻すには[[llAxisAngle2Rot/ja|llAxisAngle2Rot]]を使います。
|func_footnote={{LSLG/ja|llRot2Axis}} とあわせて使います。<br/>元に戻すには {{LSLG/ja|llAxisAngle2Rot}} を使います。
|func_desc
|func_desc
|return_text='''rot'''で表される回転角度
|return_text='''rot''' で表される回転角度
|spec
|spec
|caveats=これは常にPIラジアン以下の正の域の角度を返し、すなわち、それは、符号なしの最小角度です。3/2 PIラジアン(270°)の回転は、-PI/2ではない、PI/2ラジアンの角度を返すでしょう。
|caveats=これは常に ≦ PI ラジアンの正の角度を返します。PI は、符号なしの最小角度です。3/2 PI ラジアン (270°) の回転は、PI / 2 ラジアンの角度を返し、-PI /2 の角度ではありません。
|constants
|constants
|examples
|examples
|helpers
|helpers
|also_functions=
|also_functions=
{{LSL DefineRow||[[llAxisAngle2Rot/ja|llAxisAngle2Rot]]}}
{{LSL DefineRow||{{LSLG/ja|llAxisAngle2Rot}}}}
{{LSL DefineRow||[[llRot2Axis/ja|llRot2Axis]]}}
{{LSL DefineRow||{{LSLG/ja|llRot2Axis}}}}
{{LSL DefineRow||[[llRot2Up/ja|llRot2Up]]}}
{{LSL DefineRow||{{LSLG/ja|llRot2Up}}}}
{{LSL DefineRow||[[llRot2Fwd/ja|llRot2Fwd]]}}
{{LSL DefineRow||{{LSLG/ja|llRot2Fwd}}}}
{{LSL DefineRow||[[llRot2Left/ja|llRot2Left]]}}
{{LSL DefineRow||{{LSLG/ja|llRot2Left}}}}
{{LSL DefineRow||{{LSLG/ja|llAngleBetween}}|機能的には同じ。}}
|also_tests
|also_tests
|also_events
|also_events
|also_articles
|also_articles
|notes
|notes
|cat1=Rotation/ja
|cat1=Rotation
|cat2
|cat2
|cat3
|cat3
|cat4
|cat4
|deepnotes=<source lang="lsl2">float Rot2Angle(rotation a)
{
    return llAcos(llFabs(a.s) / llSqrt(a.x * a.x + a.y * a.y + a.z * a.z + a.s * a.s)) * 2.0;
}</source>
}}
}}

Latest revision as of 14:14, 25 February 2016

要約

関数: float llRot2Angle( rotation rot );

rot で表される回転角度を float で返します。

• rotation rot

llRot2Axis とあわせて使います。
元に戻すには llAxisAngle2Rot を使います。

警告

これは常に ≦ PI ラジアンの正の角度を返します。PI は、符号なしの最小角度です。3/2 PI ラジアン (270°) の回転は、PI / 2 ラジアンの角度を返し、-PI /2 の角度ではありません。

All Issues ~ Search JIRA for related Bugs

サンプル

関連項目

関数

•  llAxisAngle2Rot
•  llRot2Axis
•  llRot2Up
•  llRot2Fwd
•  llRot2Left
•  llAngleBetween 機能的には同じ。

特記事項

float Rot2Angle(rotation a)
{
    return llAcos(llFabs(a.s) / llSqrt(a.x * a.x + a.y * a.y + a.z * a.z + a.s * a.s)) * 2.0;
}

Search JIRA for related Issues

Signature

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