Vector
Measure and normalize vectors and derive directions from rotations.
What do you want to do?
float llVecMag(vector vec)Returns the magnitude (geometric length) of vec.vector llVecNorm(vector vec)Returns the normalized unit vector pointing the same direction as vec. If <0, 0, 0>, return <0, 0, 0>.vector 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.Reference
9 topic entries
vector llLinear2sRGB(vector color)Returns a sRGB colorspace vector converted from the linear RGB colorspace argument.functionvector llRot2Axis(rotation q)Returns the unit vector axis that q rotates around.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.functionfloat llVecDist(vector vec_a, vector vec_b)Returns a float representing the undirected, non-negative distance between vectors vec_a and vec_b.functionfloat llVecMag(vector vec)Returns the magnitude (geometric length) of vec.functionvector llVecNorm(vector vec)Returns the normalized unit vector pointing the same direction as vec. If <0, 0, 0>, return <0, 0, 0>.functionvector llsRGB2Linear(vector color)Returns a linear RGB colorspace vector converted from the sRGB colorspace argument.function
No matching entries. Try a different term or filter.