Difference between revisions of "LlRot2Left/ja"
Jump to navigation
Jump to search
Asuka Neely (talk | contribs) |
|||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{LSL_Function/ja | {{LSL_Function/ja | ||
|func_id=19|func_sleep=0.0|func_energy=10.0 | |func_id=19|func_sleep=0.0|func_energy=10.0 | ||
|func=llRot2Left|sort=Rot2Left | |func=llRot2Left|sort=Rot2Left | ||
|return_type=vector|p1_type=rotation|p1_name=q | |return_type=vector|p1_type=rotation|p1_name=q | ||
| | |func_desc={{HoverText|ローカル Y 軸|プリム左方}} の {{HoverLink|Viewer_coordinate_frames/ja#Global|グローバル位置システム|地球}} に対する方向を計算します。<br/> | ||
| | |return_text='''q''' で定義される左ベクトル、言い換えれば、ローカルの正の Y 方向を指す単位ベクトル | ||
| | |func_footnote=プリムのローカル{{Wikipedia|断面|横断面|lang=ja}}の方向を知るのに便利です。Y 軸は常にこのローカル横断面に対して垂直ですので。 | ||
|spec | |spec=計算上同じ結果となります: | ||
<source lang="lsl2">ret = llVecNorm(<0., 1., 0.> * q);</source> | |||
'''q''' が単位ベクトルであるとわかっているなら、シンプルにできます: | |||
<source lang="lsl2">ret = <0., 1., 0.> * q;</source> | |||
|caveats | |caveats | ||
|constants | |constants | ||
|examples | |examples | ||
|helpers | |helpers | ||
|also_functions={{LSL DefineRow|| | |also_functions={{LSL DefineRow||{{LSLG/ja|llRot2Up}}|}} | ||
{{LSL DefineRow|| | {{LSL DefineRow||{{LSLG/ja|llRot2Fwd}}|}} | ||
{{LSL DefineRow|| | {{LSL DefineRow||{{LSLG/ja|llRot2Axis}}|}} | ||
{{LSL DefineRow|| | {{LSL DefineRow||{{LSLG/ja|llRot2Angle}}|}} | ||
|also_tests | |also_tests | ||
|also_events | |also_events | ||
|also_articles | |also_articles | ||
|notes | |notes | ||
|cat1=Rotation | |cat1=Rotation | ||
|cat2 | |cat2 | ||
|cat3 | |cat3 | ||
|cat4 | |cat4 | ||
}} | }} |
Latest revision as of 14:15, 25 February 2016
LSL ポータル | 関数 | イベント | 型 | 演算子 | 定数 | 実行制御 | スクリプトライブラリ | カテゴリ別スクリプトライブラリ | チュートリアル |
要約
関数: vector llRot2Left( rotation q );仕様
計算上同じ結果となります:
ret = llVecNorm(<0., 1., 0.> * q);
q が単位ベクトルであるとわかっているなら、シンプルにできます:
ret = <0., 1., 0.> * q;
サンプル
関連項目
関数
• | llRot2Up | |||
• | llRot2Fwd | |||
• | llRot2Axis | |||
• | llRot2Angle |
特記事項
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。