Difference between revisions of "LlAxes2Rot"

From Second Life Wiki
Jump to navigation Jump to search
(added unit vector requirement for llAxes2Rot)
Line 8: Line 8:
|return_text=that is defined by the 3 coordinate axes
|return_text=that is defined by the 3 coordinate axes
|notes=Technically, only two non-parallel vectors are needed to define this rotation which can be done by calling:
|notes=Technically, only two non-parallel vectors are needed to define this rotation which can be done by calling:
<pre>llAxes2Rot(fwd, left, fwd % left);</pre>
<pre>llAxes2Rot(fwd, left, fwd % left);</pre>All three vectors must be mutually orthogonal unit vectors.
|spec
|spec
|caveats
|caveats
Line 18: Line 18:
|also_articles
|also_articles
|cat1=Math/3D
|cat1=Math/3D
|cat2
|cat2=Rotation
|cat3
|cat3
|cat4
|cat4
}}
}}

Revision as of 23:25, 11 January 2008

Summary

Function: rotation llAxes2Rot( vector fwd, vector left, vector up );
0.0 Forced Delay
10.0 Energy

Returns a rotation that is defined by the 3 coordinate axes

• vector fwd
• vector left
• vector up

Examples

Notes

Technically, only two non-parallel vectors are needed to define this rotation which can be done by calling:

llAxes2Rot(fwd, left, fwd % left);
All three vectors must be mutually orthogonal unit vectors.

Deep Notes

Signature

function rotation llAxes2Rot( vector fwd, vector left, vector up );