Skip to content

Add the squared 2-norm of a Point, with the norm2() method.

bianucci requested to merge point-norm2 into master

The value of the squared 2-norm of a point is often needed and it does not make sense to compute the 2-norm through a sqrt() and then square the result again. Instead I propose simply having a norm2() method, analogously to the distance2() one which is already part of the Point interface.

Merge request reports