Logo Search packages:      
Sourcecode: inkscape version File versions

Coord Geom::L2sq ( Point const &  p  )  [inline]

Compute the square of L2 norm of p. Warning: this can overflow where L2 won't.

Definition at line 167 of file point.h.

Referenced by distanceSq().

{ return p[0]*p[0] + p[1]*p[1]; }


Generated by  Doxygen 1.6.0   Back to index