diff --git a/vcg/space/deprecated_point2.h b/vcg/space/deprecated_point2.h index 6a895e86..cdfb6a27 100644 --- a/vcg/space/deprecated_point2.h +++ b/vcg/space/deprecated_point2.h @@ -354,6 +354,11 @@ inline T SquaredDistance( Point2 const & p1,Point2 const & p2 ){ return SquaredNorm(p1-p2); } +template +inline Point2 Abs(const Point2 & p) { + return (Point2(math::Abs(p[0]), math::Abs(p[1]))); +} + typedef Point2 Point2s; typedef Point2 Point2i; typedef Point2 Point2f;