COG Verb - VectorLen

Returns the length of a vector. Syntax:

 length=VectorLen(vector); 

The Math

 length=sqrt(sqr(x) + sqr(y) + sqr(z)) 

Geometrical Application

Image:Vectorlen.gif

The given vector is red. The green line represents the flex length of the red vector. As you can see in this picture, a vector's distance from zero is its length.

  • Create:
This page was last modified 23:52, 2 April 2006.   This page has been accessed 266 times.