From 122cc507980d228df2da7d01379166a4adfee04b Mon Sep 17 00:00:00 2001 From: cignoni Date: Thu, 12 May 2011 09:52:34 +0000 Subject: [PATCH] added missing Abs(Point2) --- vcg/space/deprecated_point2.h | 5 +++++ 1 file changed, 5 insertions(+) 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;