Difference between revisions of "LlRot2Euler"
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 | |||
|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 | ||
< | |examples=<pre> | ||
default { | default | ||
{ | |||
state_entry() | state_entry() | ||
{ | { | ||
Line 32: | Line 18: | ||
} | } | ||
} | } | ||
</ | </pre> | ||
|helpers | |helpers | ||
| | |also_functions={{LSLG|llEuler2Rot}} | ||
| | |also_events | ||
|also_articles | |||
|also_tests | |||
|notes | |notes | ||
|permission | |||
|negative_index | |||
|cat1=Math | |||
|cat2=Rotation | |||
|cat3 | |||
|cat4 | |||
}} | }} | ||
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.
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: vector llRot2Euler( rotation quat );15 | Function ID |
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
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) ); } }