Difference between revisions of "LlRot2Euler"
Jump to navigation
Jump to search
All Issues ~ Search JIRA for related Bugs
(spacing) |
m |
||
Line 5: | Line 5: | ||
|p1_type=rotation|p1_name=quat|p1_desc=Any valid rotation | |p1_type=rotation|p1_name=quat|p1_desc=Any valid rotation | ||
|return_type=vector | |return_type=vector | ||
|return_text=that is the Euler representation (roll, pitch, yaw) of | |return_text=that is the Euler representation (roll, pitch, yaw) of {{LSLP|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= | |examples= |
Revision as of 11:09, 29 June 2012
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
- Angles greater than PI (180 degrees) are returned as negative angles.
Examples
<lsl> 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) ); }
}
</lsl>