mag()

Calculates the magnitude (length) of the vector.

Use mag() to calculate the magnitude of a 2D vector using components as in mag(x, y).

Ejemplos

Sintaxis

mag()

Parámetros

Returns

Number: magnitude of the vector.

Referencias Relacionadas