From 6a2b32f3e421c938191559db8576e8413b02d5f5 Mon Sep 17 00:00:00 2001 From: dibenedetto Date: Sat, 7 Oct 2006 16:50:26 +0000 Subject: [PATCH] Added Dim() method. --- vcg/space/box2.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vcg/space/box2.h b/vcg/space/box2.h index 1b134306..69eb594b 100644 --- a/vcg/space/box2.h +++ b/vcg/space/box2.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.6 2005/06/14 13:46:20 ponchio +Minibug: Box2f -> Box2 in the template. + Revision 1.5 2005/05/06 14:02:37 croccia replaced all the occurences of min.v[0] with min.X(), max.v[0] with max.X() etc. @@ -217,6 +220,9 @@ public: /// Calcola la dimensione del bounding box sulla y. inline BoxScalarType DimY() const { return max.Y()-min.Y(); } + /// Calcola la dimensione del bounding box. + inline Point2 Dim() const { return max-min; } + inline void Normalize( Point2 & p ) { p -= min;