From 387c62414ae000d9d90f9c868d6665c878683c17 Mon Sep 17 00:00:00 2001 From: nicopietroni Date: Sun, 12 Dec 2010 23:57:39 +0000 Subject: [PATCH] added constructor with Min and Max --- vcg/space/box2.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vcg/space/box2.h b/vcg/space/box2.h index 89c85af2..5a4a6ffd 100644 --- a/vcg/space/box2.h +++ b/vcg/space/box2.h @@ -56,6 +56,8 @@ public: inline Box2() { min.X()= 1; max.X()= -1; min.Y()= 1; max.Y()= -1; } /// Copy constructor inline Box2( const Box2 & b ) { min=b.min; max=b.max; } + /// Min Max constructor + inline Box2( const Point2 & mi, const Point2 & ma ) { min = mi; max = ma; } /// Distructor inline ~Box2() { } /// Operator to compare two bounding box