function
Function syntax
float llRot2Angle(rotation q// Rotation to evaluate.
);- Returns
float- Energy
- 10
Use in conjunction with llRot2Axis.
To undo use llAxisAngle2Rot.
Returns a float that is the rotation angle represented by rot
float result = llRot2Angle(ZERO_ROTATION);Caveats
Section titled “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.
See also
Section titled “See also”Functions
Section titled “Functions”llAxisAngle2RotllRot2AxisllRot2UpllRot2FwdllRot2LeftllAngleBetween— Similar functionality.
Original wiki source
Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.