Difference between revisions of "LlRot2Angle"
Jump to navigation
Jump to search
All Issues ~ Search JIRA for related Bugs
Line 7: | Line 7: | ||
|return_text=that is the rotation angle represented by '''rot''' | |return_text=that is the rotation angle represented by '''rot''' | ||
|spec | |spec | ||
|caveats=This always returns a positive angle < PI radians, that is, it is the unsigned minimum angle. A rotation of 3/2 PI radians (270 degrees) will return an angle of PI / 2 radians, not -PI / 2. | |caveats=This always returns a positive angle <= PI radians, that is, it is the unsigned minimum angle. A rotation of 3/2 PI radians (270 degrees) will return an angle of PI / 2 radians, not -PI / 2. | ||
|constants | |constants | ||
|examples | |examples |
Revision as of 21:29, 24 September 2007
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: float llRot2Angle( rotation rot );171 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Returns a float that is the rotation angle represented by rot
• rotation | rot |
Use in conjunction with llRot2Axis.
To undo use llAxisAngle2Rot.
Caveats
This always returns a positive angle <= PI radians, that is, it is the unsigned minimum angle. A rotation of 3/2 PI radians (270 degrees) will return an angle of PI / 2 radians, not -PI / 2.
Examples
See Also
Functions
• | llAxisAngle2Rot | |||
• | llRot2Axis | |||
• | llRot2Up | |||
• | llRot2Fwd | |||
• | llRot2Left |