added constructor with Min and Max
This commit is contained in:
parent
7f5f09b492
commit
387c62414a
|
|
@ -56,6 +56,8 @@ public:
|
||||||
inline Box2() { min.X()= 1; max.X()= -1; min.Y()= 1; max.Y()= -1; }
|
inline Box2() { min.X()= 1; max.X()= -1; min.Y()= 1; max.Y()= -1; }
|
||||||
/// Copy constructor
|
/// Copy constructor
|
||||||
inline Box2( const Box2 & b ) { min=b.min; max=b.max; }
|
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
|
/// Distructor
|
||||||
inline ~Box2() { }
|
inline ~Box2() { }
|
||||||
/// Operator to compare two bounding box
|
/// Operator to compare two bounding box
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue