llRot2Euler

From Second Life Wiki
Revision as of 23:48, 17 September 2007 by Strife Onizuka (talk | contribs) (Euler may use vectors but they don't belong in the vector category, but the euler category)
Jump to navigation Jump to search

Summary

Function: vector llRot2Euler( rotation quat );
0.0 Forced Delay
10.0 Energy

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.

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

Signature

function vector llRot2Euler( rotation quat );