Vector
Measure and normalize vectors and derive directions from rotations.
Feature: Math
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)functionReturns a sRGB colorspace vector converted from the linear RGB colorspace argument.
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.
float llVecDist(vector vec_a, vector vec_b)functionReturns a float representing the undirected, non-negative distance between vectors vec_a and vec_b.
float llVecMag(vector vec)functionReturns the magnitude (geometric length) of vec.
vector llVecNorm(vector vec)functionReturns the normalized unit vector pointing the same direction as vec. If <0, 0, 0>, return <0, 0, 0>.
vector llsRGB2Linear(vector color)functionReturns a linear RGB colorspace vector converted from the sRGB colorspace argument.
No matching entries. Try a different term or filter.