Computes the squared norm (magnitude squared) of the vector.
This is more efficient than norm when only relative magnitudes are needed, as it avoids the square root computation.
the squared norm \(\|\mathbf{v}\|^2 = x^2 + y^2\)