Difference between revisions of "LlAxisAngle2Rot/ja"

From Second Life Wiki
Jump to navigation Jump to search
(New page: {{multi-lang}} {{LSL Function/ja |func=llAxisAngle2Rot |func_id=169|func_sleep=0.0|func_energy=10.0 |return_type=rotation |p1_type=vector|p1_name=axis|p1_desc |p2_type=float|p2_name=angle|...)
 
m
Line 1: Line 1:
{{multi-lang}}
{{LSL Function/ja
{{LSL Function/ja
|func=llAxisAngle2Rot
|func=llAxisAngle2Rot
Line 31: Line 30:
|also
|also
|notes
|notes
|cat1=Math/3D/ja
|cat1=Math/3D
|cat2=Rotation/ja
|cat2=Rotation
|cat3
|cat3
|cat4
|cat4
}}
}}

Revision as of 23:05, 18 April 2008

要約

関数: 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の関連した項目が参考になるかもしれません。