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).

예제

구문

mag()

매개변수

반환값

Number: magnitude of the vector.

관련 레퍼런스