Quaternion
Create, convert, and inspect rotations.
What do you want to do?
rotation llEuler2Rot(vector vec)Returns the quaternion representation of the Euler angles (in radians) within vec.vector llRot2Euler(rotation q)Returns a vector of Euler angles (roll, pitch, yaw) of q. The angles will be in radians.rotation llAxisAngle2Rot(vector axis, float angle)Returns the rotation that rotates angle radians around the axis vector.Reference
11 topic entries
float llAngleBetween(rotation start_rot, rotation end_rot)Returns the angle, in radians, between rotations start_rot and and end_rot.functionrotation llAxes2Rot(vector fwd, vector left, vector up)Returns the rotation defined by the coordinate axes fwd, left, and up.functionrotation llAxisAngle2Rot(vector axis, float angle)Returns the rotation that rotates angle radians around the axis vector.functionrotation llEuler2Rot(vector vec)Returns the quaternion representation of the Euler angles (in radians) within vec.functionfloat llRot2Angle(rotation q)Returns the angle, in radians, that q rotates.functionvector llRot2Axis(rotation q)Returns the unit vector axis that q rotates around.functionvector llRot2Euler(rotation q)Returns a vector of Euler angles (roll, pitch, yaw) of q. The angles will be in radians.functionvector llRot2Fwd(rotation q)Returns the unit vector pointing toward positive X (forward) in the coordinate space of rotation q. Equivalent to <1, 0, 0> * q.functionvector llRot2Left(rotation q)Returns the unit vector pointing toward positive Y (left) in the coordinate space of rotation q. Equivalent to <0, 1, 0> * q.functionvector llRot2Up(rotation q)Returns the unit vector pointing toward positive Z (up) in the coordinate space of rotation q. Equivalent to <0, 0, 1> * q.functionrotation llRotBetween(vector start_vec, vector end_vec)Returns the shortest-path quaternion that rotates start_vec onto end_vec.function
No matching entries. Try a different term or filter.