Difference between revisions of "LlRot2Axis/ja"

From Second Life Wiki
Jump to navigation Jump to search
m (Undo revision 850422 by Mako Nozaki (Talk))
m
Line 3: Line 3:
|func=llRot2Axis|sort=Rot2Axis
|func=llRot2Axis|sort=Rot2Axis
|return_type=vector|p1_type=rotation|p1_name=rot
|return_type=vector|p1_type=rotation|p1_name=rot
|func_footnote={{LSLG/ja|llRot2Angle}}とあわせて使います。<br/>元に戻すには{{LSLG/ja|llAxisAngle2Rot}}を使います。
|func_footnote={{LSLG/ja|llRot2Angle}} とあわせて使います。<br/>元に戻すには {{LSLG/ja|llAxisAngle2Rot}} を使います。
|func_desc
|func_desc
|return_text='''rot'''で表現される回転軸
|return_text='''rot''' で表現される回転軸
|spec
|spec
|caveats
|caveats
Line 11: Line 11:
|examples
|examples
|helpers
|helpers
|also_functions={{LSL DefineRow||[[llRot2Angle/ja|llRot2Angle]]}}
|also_functions={{LSL DefineRow||{{LSLG/ja|llRot2Angle}}}}
{{LSL DefineRow||[[llAxisAngle2Rot/ja|llAxisAngle2Rot]]}}
{{LSL DefineRow||{{LSLG/ja|llAxisAngle2Rot}}}}
{{LSL DefineRow||[[llRot2Left/ja|llRot2Left]]}}
{{LSL DefineRow||{{LSLG/ja|llRot2Left}}}}
{{LSL DefineRow||[[llRot2Fwd/ja|llRot2Fwd]]}}
{{LSL DefineRow||{{LSLG/ja|llRot2Fwd}}}}
{{LSL DefineRow||[[llRot2Up/ja|llRot2Up]]}}
{{LSL DefineRow||{{LSLG/ja|llRot2Up}}}}
|also_tests
|also_tests
|also_events
|also_events
|also_articles=
|also_articles=
{{LSL DefineRow||[[Slerp/ja|Slerp]]}}
{{LSL DefineRow||{{LSLG|Slerp}}}}
|notes
|notes
|permission
|permission
Line 28: Line 28:
|cat3
|cat3
|cat4
|cat4
|deepnotes=<lsl>vector llRot2Axis(rotation a) {
    if(a.s < 0)
        return -llVecNorm(<a.x, a.y, a.z>);
    return llVecNorm(<a.x, a.y, a.z>)
}</lsl>
<lsl>vector llRot2Axis(rotation a) {
    return llVecNorm(<a.x, a.y, a.z>) * (1 | -(a.s < 0));
}</lsl>
}}
}}

Revision as of 07:23, 8 May 2010

要約

関数: vector llRot2Axis( rotation rot );

rot で表現される回転軸を vector で返します。

• rotation rot

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

サンプル

関連項目

関数

•  llRot2Angle
•  llAxisAngle2Rot
•  llRot2Left
•  llRot2Fwd
•  llRot2Up

記事

•  Slerp

特記事項

<lsl>vector llRot2Axis(rotation a) {

   if(a.s < 0)
       return -llVecNorm(<a.x, a.y, a.z>);
   return llVecNorm(<a.x, a.y, a.z>)

}</lsl>

<lsl>vector llRot2Axis(rotation a) {

   return llVecNorm(<a.x, a.y, a.z>) * (1

Search JIRA for related Issues

Signature

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