Contents - Index


VectorMag

 

The VectorMag function requires 1 parameter, which must be the name of a vector that has been previously identified with the $Vector or $Vector2D directive.  

 

VectorMag returns a scalar that is the magnitude of the vector and has the same units as the vector.

 

Example:

$Vector A

A=VectorAssign(3,5,1) [mm]

M=VectorMag(A)

 

{Solution:

A = (3, 5, -1) [mm]

M = 5.916 [mm]

}

 

See also:  VectorDot