LlRot2Euler: Difference between revisions

From Second Life Wiki
Jump to navigation Jump to search
No edit summary
Strife Onizuka (talk | contribs)
Euler may use vectors but they don't belong in the vector category, but the euler category
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=Angles greater than PI (180 degrees) are returned as negative angles.
|caveats=*Angles greater than PI (180 degrees) are returned as negative angles.
|constants
|constants
|examples=<pre>
|examples=<pre>
Line 20: Line 20:
</pre>
</pre>
|helpers
|helpers
|also_functions={{LSL DefineRow||{{LSLG|llEuler2Rot}}|}}
|also_functions={{LSL DefineRow||[[llEuler2Rot]]|}}
|also_events
|also_events
|also_articles={{LSL DefineRow||{{Wikipedia|Euler_Angles}}|}}
|also_articles={{LSL DefineRow||{{Wikipedia|Euler_Angles}}|}}
Line 29: Line 29:
|cat1=Math/3D
|cat1=Math/3D
|cat2=Rotation
|cat2=Rotation
|cat3=Vector
|cat3=Euler
|cat4
|cat4
}}
}}

Revision as of 00:48, 18 September 2007

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