Math Trig
Calculate trigonometric values and work with angles.
Feature: Math
What do you want to do?
float llSin(float theta)Returns the sine of theta. Theta is in radians.float llCos(float theta)Returns the cosine of theta. Theta is in radians.float llAtan2(float y, float x)Returns the arctangent of y/x in radians, using the signs to determine the quadrant. Note the argument order: Y is the first parameter, X is the second parameter.Reference
15 topic entries
float llAcos(float val)functionReturns the arccosine of val in radians.
float llAngleBetween(rotation start_rot, rotation end_rot)functionReturns the angle, in radians, between rotations start_rot and and end_rot.
float llAsin(float val)functionReturns the arcsine of val in radians.
float llAtan2(float y, float x)functionReturns the arctangent of y/x in radians, using the signs to determine the quadrant. Note the argument order: Y is the first parameter, X is the second parameter.
rotation llAxes2Rot(vector fwd, vector left, vector up)functionReturns the rotation defined by the coordinate axes fwd, left, and up.
rotation llAxisAngle2Rot(vector axis, float angle)functionReturns the rotation that rotates angle radians around the axis vector.
float llCos(float theta)functionReturns the cosine of theta. Theta is in radians.
float llRot2Angle(rotation q)functionReturns the angle, in radians, that q rotates.
vector llRot2Axis(rotation q)functionReturns the unit vector axis that q rotates around.
vector llRot2Fwd(rotation q)functionReturns the unit vector pointing toward positive X (forward) in the coordinate space of rotation q. Equivalent to <1, 0, 0> * q.
vector llRot2Left(rotation q)functionReturns the unit vector pointing toward positive Y (left) in the coordinate space of rotation q. Equivalent to <0, 1, 0> * q.
vector llRot2Up(rotation q)functionReturns the unit vector pointing toward positive Z (up) in the coordinate space of rotation q. Equivalent to <0, 0, 1> * q.
rotation llRotBetween(vector start_vec, vector end_vec)functionReturns the shortest-path quaternion that rotates start_vec onto end_vec.
float llSin(float theta)functionReturns the sine of theta. Theta is in radians.
float llTan(float theta)functionReturns the tangent of theta. Theta is in radians.
No matching entries. Try a different term or filter.