Difference between revisions of "LlRot2Euler"

From Second Life Wiki
Jump to navigation Jump to search
m (lsl code tagging)
(spacing)
Line 1: Line 1:
{{LSL_Function
{{LSL Function
|func_id=15|func_sleep=0.0|func_energy=10.0
|func_id=15|func_sleep=0.0|func_energy=10.0
|func=llRot2Euler|sort=Rot2Euler
|func=llRot2Euler|sort=Rot2Euler
Line 23: Line 23:
|also_functions={{LSL DefineRow||[[llEuler2Rot]]|}}
|also_functions={{LSL DefineRow||[[llEuler2Rot]]|}}
|also_events
|also_events
|also_articles={{LSL DefineRow||{{Wikipedia|Euler_Angles}}|}}
|also_articles={{LSL DefineRow||{{Wikipedia|Euler Angles}}|}}
|also_tests
|also_tests
|notes
|notes

Revision as of 13:36, 17 February 2012

Summary

Function: vector llRot2Euler( rotation quat );

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

• rotation quat Any valid rotation

Caveats

  • Angles greater than PI (180 degrees) are returned as negative angles.
All Issues ~ Search JIRA for related Bugs

Examples

<lsl> default {

   state_entry()
   {
       rotation input = <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>

See Also

Functions

•  llEuler2Rot

Articles

•  "Wikipedia logo"Euler Angles

Deep Notes

Search JIRA for related Issues

Signature

function vector llRot2Euler( rotation quat );