Length
(Difference between revisions)
Dahnielson (Talk | contribs) |
Dahnielson (Talk | contribs) |
||
Line 1: | Line 1: | ||
+ | {{lua-function|length|vector}} | ||
+ | |||
Returns the length of a 3d vector (sqrt(x*x + y*y + z*z)) : | Returns the length of a 3d vector (sqrt(x*x + y*y + z*z)) : | ||
Revision as of 16:39, 8 February 2014
length(vector)
Returns the length of a 3d vector (sqrt(x*x + y*y + z*z)) :
L = length(vec3(x, y, z))