Difference between revisions of "LlRot2Euler"

From Second Life Wiki
Jump to navigation Jump to search
Line 7: Line 7:
|return_text=that is the Euler representation (roll, pitch, yaw) of '''quat'''.
|return_text=that is the Euler representation (roll, pitch, yaw) of '''quat'''.
|spec
|spec
|caveats
|caveats=Angles greater than PI (180 degrees) are returned as negative angles.
|constants
|constants
|examples=<pre>
|examples=<pre>

Revision as of 17:37, 14 September 2007

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

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) );
    }
}

See Also

Functions

•  llEuler2Rot

Articles

•  "Wikipedia logo"Euler_Angles

Deep Notes

Search JIRA for related Issues

Signature

function vector llRot2Euler( rotation quat );