magnitude(...)

magnitude(l : number[]) : number;

Calculates the length of a three-dimensional vector.

The length of the vector is calculated as follows sqrt(x*x + y*y + z*z).

Parameters

Parameter Type Description
l number[] The vector to add.

Returns

The magnitude of the vector as a single number.

zapcode branded_zapcode i