예제 #1
0
 //! Extend the boundaries of the box by the given \a a_box parameter.
 void extendBy(const Box3<Type> & a_box)
 {
     if(isEmpty()){
         *this = a_box;
     }else{
         extendBy(a_box.getMin());
         extendBy(a_box.getMax());
     }
 }
예제 #2
0
 //! Check \a b1 and \a b2 for equality.
 friend bool operator ==(const Box3<Type> & b1, const Box3<Type> & b2)
 {
     return b1.getMin() == b2.getMin() && b1.getMax() == b2.getMax();
 }
예제 #3
0
파일: Box3.hpp 프로젝트: andreaswatch/dizuo
	Box3(const Box3<Type> & box)
	{
		setBounds( box.getMin(), box.getMax() );
	}