Difference between revisions of "LlRot2Axis"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 3: Line 3:
|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=Use in conjunction with {{LSLG|llRot2Angle}}.<br/>To undo use {{LSLG|llAxisAngle2Rot}}.
|func_footnote=Use in conjunction with {{LSLG|llRot2Angle}}.<br/>To undo use {{LSLG|llAxisAngle2Rot}} or {{LSLG|llAxes2Rot}}.
|func_desc
|func_desc
|return_text=the rotation axis represented by '''rot'''
|return_text=the rotation axis represented by '''rot'''

Revision as of 15:01, 2 December 2013

Summary

Function: vector llRot2Axis( rotation rot );

Returns a vector the rotation axis represented by rot

• rotation rot

Use in conjunction with llRot2Angle.
To undo use llAxisAngle2Rot or llAxes2Rot.

Examples

See Also

Functions

•  llRot2Angle
•  llAxisAngle2Rot
•  llRot2Left
•  llRot2Fwd
•  llRot2Up

Articles

•  Slerp

Deep Notes

<lsl>vector llRot2Axis(rotation a) {

   if(a.s < 0)
       return -llVecNorm(<a.x, a.y, a.z>);
   return llVecNorm(<a.x, a.y, a.z>)

}</lsl>

<lsl>vector llRot2Axis(rotation a) {

   return llVecNorm(<a.x, a.y, a.z>) * (1

Search JIRA for related Issues

Signature

function vector llRot2Axis( rotation rot );