Difference between revisions of "LlAxisAngle2Rot/ja"

From Second Life Wiki
Jump to navigation Jump to search
m
m (カテゴリ変更)
Line 30: Line 30:
|also
|also
|notes
|notes
|cat1=Math/3D
|cat1=Math/3D/ja
|cat2=Rotation
|cat2=Rotation/ja
|cat3
|cat3
|cat4
|cat4
}}
}}

Revision as of 06:21, 10 April 2010

要約

関数: rotation llAxisAngle2Rot( vector axis, float angle );

axisに関するangleが生成されてを rotation で返します。

• vector axis
• float angle ラジアンで表現されます

axis正常化すべきです。

サンプル

<lsl>default {

   state_entry()
   {
       vector axis = <0.0, 0.0, 1.0>;
       float angle = 90.0 * DEG_TO_RAD;
       rotation rot = llAxisAngle2Rot(axis, angle);
       vector euler = llRot2Euler(rTest) * RAD_TO_DEG;
       llOwnerSay((string) euler);
       //Says <0.0, 0.0, 90.0> since it is rotating 90 degrees on the Z axis caused by the 1.0 placed in the Z vector spot. 
   }
}</lsl>

関連項目

関数

•  llRot2Angle
•  llRot2Axis

特記事項

Search JIRA for related Issues

Signature

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