diff --git a/include/cartesian_geom/point.h b/include/cartesian_geom/point.h index b8c8e32b4..c3ca5d4d2 100644 --- a/include/cartesian_geom/point.h +++ b/include/cartesian_geom/point.h @@ -173,7 +173,7 @@ class point coeffs /= k; } - bool operator== (point& p) const + bool operator== (const point& p) const { int i=0; const Coeff & coeffs = p.getCoefficients(); @@ -190,7 +190,7 @@ class point return true; } - FT distance(point const & p) { + FT distance(point const & p) const { return (this->coeffs - p.coeffs).norm(); }