Added Dim() method.

This commit is contained in:
Marco Di Benedetto 2006-10-07 16:50:26 +00:00
parent 2c722372aa
commit 6a2b32f3e4
1 changed files with 6 additions and 0 deletions

View File

@ -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<BoxScalarType> Dim() const { return max-min; }
inline void Normalize( Point2<BoxScalarType> & p )
{
p -= min;