added constructor with Min and Max

This commit is contained in:
Nico Pietroni 2010-12-12 23:57:39 +00:00
parent 7f5f09b492
commit 387c62414a
1 changed files with 2 additions and 0 deletions

View File

@ -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<BoxScalarType> & mi, const Point2<BoxScalarType> & ma ) { min = mi; max = ma; }
/// Distructor
inline ~Box2() { }
/// Operator to compare two bounding box