llRot2Euler

From Second Life Wiki
Revision as of 21:06, 25 January 2007 by Strife Onizuka (talk | contribs)
Jump to navigation Jump to search

   Outdated templated used

Please change the template from 'LSLFunctionAll' to 'LSL_Function' (just replace 'LSLFunctionAll' with 'LSL_Function', do this after fixing any other erorr messages.

Summary

Function: vector llRot2Euler( rotation quat );

Returns a vector that is the Euler representation (roll, pitch, yaw) of quat.

• rotation quat Any valid vector

Examples

<lsl> default {

   state_entry()
   {
       rotationinput = <0.0, 1.0, 0.0, 0.0>;//not advised to make your own quaternion
       llSay(0,"The Rot2Euler of "+(string)input+" is: "+(string)llRot2Euler(input) );
   }

}

</lsl>

Deep Notes

Search JIRA for related Issues

Signature

function vector llRot2Euler( rotation quat );