Difference between revisions of "LlRot2Axis/ja"

From Second Life Wiki
Jump to navigation Jump to search
(New page: {{multi-lang}} {{LSL_Function/ja |func_id=170|func_sleep=0.0|func_energy=10.0 |func=llRot2Axis|sort=Rot2Axis |return_type=vector|p1_type=rotation|p1_name=rot |func_footnote={{LSLG/ja|llRot...)
 
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{multi-lang}}
{{LSL_Function/ja
{{LSL_Function/ja
|func_id=170|func_sleep=0.0|func_energy=10.0
|func_id=170|func_sleep=0.0|func_energy=10.0
|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 12: 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
|inventory
|inventory
|negative_index
|negative_index
|cat1=Rotation/ja
|cat1=Rotation
|cat2
|cat2
|cat3
|cat3
|cat4
|cat4
|deepnotes=<source lang="lsl2">vector llRot2Axis(rotation a) {
    if(a.s < 0)
        return -llVecNorm(<a.x, a.y, a.z>);
    return llVecNorm(<a.x, a.y, a.z>)
}</source>
<source lang="lsl2">vector llRot2Axis(rotation a) {
    return llVecNorm(<a.x, a.y, a.z>) * (1 | -(a.s < 0));
}</source>
}}
}}

Latest revision as of 14:14, 25 February 2016

要約

関数: vector llRot2Axis( rotation rot );

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

• rotation rot

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

サンプル

関連項目

関数

•  llRot2Angle
•  llAxisAngle2Rot
•  llRot2Left
•  llRot2Fwd
•  llRot2Up

記事

•  Slerp

特記事項

vector llRot2Axis(rotation a) {
    if(a.s < 0)
        return -llVecNorm(<a.x, a.y, a.z>);
    return llVecNorm(<a.x, a.y, a.z>)
}
vector llRot2Axis(rotation a) {
    return llVecNorm(<a.x, a.y, a.z>) * (1 | -(a.s < 0));
}

Search JIRA for related Issues

Signature

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