Skip to content

editor / norm

Function: norm() ​

norm(vector): number

Defined in: math/norm.ts:13

Length of a vector (Euclidean, or L2, norm).

Formula: ‖v‖ = √(vₓ² + v_y²).

Parameters ​

vector ​

Vector

displacement

Returns ​

number

its length, >= 0

Kind ​

math

See ​

REF-MATHWORLD-VECTOR-NORM