Difference between revisions of "LlRot2Euler"

From Second Life Wiki
Jump to navigation Jump to search
Line 1: Line 1:
{{LSLFunctionAll
{{LSLFunctionAll
|func=llRot2Euler
|func=llRot2Euler|sort=Rot2Euler
|func_id=15
|func_id=15|func_sleep=0.0|func_energy=10.0
|func_sleep=0.0
|func_energy=10.0
|func_footnote
|func_footnote
|p1_type=rotation
|p1_type=rotation|p1_name=quat|p1_desc=Any valid rotation
|p1_name=quat
|p1_desc=Any valid vector
|p2_type|p2_name|p2_desc
|p3_type|p3_name|p3_desc
|p4_type|p4_name|p4_desc
|p5_type|p5_name|p5_desc
|p6_type|p6_name|p6_desc
|p7_type|p7_name|p7_desc
|p8_type|p8_name|p8_desc
|p9_type|p9_name|p9_desc
|p10_type|p10_name|p10_desc
|p11_type|p11_name|p11_desc
|p12_type|p12_name|p12_desc
|return_type=vector
|return_type=vector
|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
|examples=
|constants
<lsl>
|examples=<pre>
default {
default
{
     state_entry()
     state_entry()
     {
     {
Line 32: Line 18:
     }
     }
}
}
</lsl>
</pre>
|helpers
|helpers
|related={{LSLG|llEuler2Rot}}
|also_functions={{LSLG|llEuler2Rot}}
|also
|also_events
|also_articles
|also_tests
|notes
|notes
|permission
|negative_index
|cat1=Math
|cat2=Rotation
|cat3
|cat4
}}
}}
[[Category:LSL_Functions]]
[[Category:LSL_Math]]
[[Category:LSL_Rotation]]

Revision as of 01:23, 14 February 2007

   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 rotation

Examples

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

See Also

Functions

llEuler2Rot

Deep Notes

Search JIRA for related Issues

Signature

function vector llRot2Euler( rotation quat );