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;