Lines Matching full:box
41 // class Imath::Box<class T>
56 // a float (and/or double) for use in initializing the box.
71 class Box
83 // Constructors - an "empty" box is created by default
86 Box ();
87 Box (const T &point);
88 Box (const T &minT, const T &maxT);
94 bool operator == (const Box<T> &src) const;
95 bool operator != (const Box<T> &src) const;
98 // Box manipulation
103 void extendBy (const Box<T> &box);
113 bool intersects (const Box<T> &box) const;
131 typedef Box <V2s> Box2s;
132 typedef Box <V2i> Box2i;
133 typedef Box <V2f> Box2f;
134 typedef Box <V2d> Box2d;
135 typedef Box <V3s> Box3s;
136 typedef Box <V3i> Box3i;
137 typedef Box <V3f> Box3f;
138 typedef Box <V3d> Box3d;
146 inline Box<T>::Box() in Box() function
153 inline Box<T>::Box (const T &point) in Box() function
161 inline Box<T>::Box (const T &minT, const T &maxT) in Box() function
170 Box<T>::operator == (const Box<T> &src) const
178 Box<T>::operator != (const Box<T> &src) const
185 inline void Box<T>::makeEmpty() in makeEmpty()
192 inline void Box<T>::makeInfinite() in makeInfinite()
201 Box<T>::extendBy(const T &point) in extendBy()
216 Box<T>::extendBy(const Box<T> &box) in extendBy() argument
220 if (box.min[i] < min[i]) in extendBy()
221 min[i] = box.min[i]; in extendBy()
223 if (box.max[i] > max[i]) in extendBy()
224 max[i] = box.max[i]; in extendBy()
231 Box<T>::intersects(const T &point) const in intersects()
245 Box<T>::intersects(const Box<T> &box) const in intersects() argument
249 if (box.max[i] < min[i] || box.min[i] > max[i]) in intersects()
259 Box<T>::size() const in size()
270 Box<T>::center() const in center()
278 Box<T>::isEmpty() const in isEmpty()
291 Box<T>::isInfinite() const in isInfinite()
305 Box<T>::hasVolume() const in hasVolume()
319 Box<T>::majorAxis() const in majorAxis()
339 template <typename T> class Box; variable
342 class Box<Vec2<T> >
354 // Constructors - an "empty" box is created by default
357 Box();
358 Box (const Vec2<T> &point);
359 Box (const Vec2<T> &minT, const Vec2<T> &maxT);
365 bool operator == (const Box<Vec2<T> > &src) const;
366 bool operator != (const Box<Vec2<T> > &src) const;
369 // Box manipulation
374 void extendBy (const Box<Vec2<T> > &box);
384 bool intersects (const Box<Vec2<T> > &box) const;
402 inline Box<Vec2<T> >::Box() in Box() function
409 inline Box<Vec2<T> >::Box (const Vec2<T> &point) in Box() function
417 inline Box<Vec2<T> >::Box (const Vec2<T> &minT, const Vec2<T> &maxT) in Box() function
426 Box<Vec2<T> >::operator == (const Box<Vec2<T> > &src) const
434 Box<Vec2<T> >::operator != (const Box<Vec2<T> > &src) const
441 inline void Box<Vec2<T> >::makeEmpty() in makeEmpty()
448 inline void Box<Vec2<T> >::makeInfinite() in makeInfinite()
457 Box<Vec2<T> >::extendBy (const Vec2<T> &point) in extendBy()
475 Box<Vec2<T> >::extendBy (const Box<Vec2<T> > &box) in extendBy() argument
477 if (box.min[0] < min[0]) in extendBy()
478 min[0] = box.min[0]; in extendBy()
480 if (box.max[0] > max[0]) in extendBy()
481 max[0] = box.max[0]; in extendBy()
483 if (box.min[1] < min[1]) in extendBy()
484 min[1] = box.min[1]; in extendBy()
486 if (box.max[1] > max[1]) in extendBy()
487 max[1] = box.max[1]; in extendBy()
493 Box<Vec2<T> >::intersects (const Vec2<T> &point) const in intersects()
505 Box<Vec2<T> >::intersects (const Box<Vec2<T> > &box) const in intersects() argument
507 if (box.max[0] < min[0] || box.min[0] > max[0] || in intersects()
508 box.max[1] < min[1] || box.min[1] > max[1]) in intersects()
517 Box<Vec2<T> >::size() const in size()
528 Box<Vec2<T> >::center() const in center()
536 Box<Vec2<T> >::isEmpty() const in isEmpty()
547 Box<Vec2<T> > ::isInfinite() const in isInfinite()
559 Box<Vec2<T> >::hasVolume() const in hasVolume()
571 Box<Vec2<T> >::majorAxis() const in majorAxis()
584 class Box<Vec3<T> >
596 // Constructors - an "empty" box is created by default
599 Box();
600 Box (const Vec3<T> &point);
601 Box (const Vec3<T> &minT, const Vec3<T> &maxT);
607 bool operator == (const Box<Vec3<T> > &src) const;
608 bool operator != (const Box<Vec3<T> > &src) const;
611 // Box manipulation
616 void extendBy (const Box<Vec3<T> > &box);
626 bool intersects (const Box<Vec3<T> > &box) const;
645 inline Box<Vec3<T> >::Box() in Box() function
652 inline Box<Vec3<T> >::Box (const Vec3<T> &point) in Box() function
660 inline Box<Vec3<T> >::Box (const Vec3<T> &minT, const Vec3<T> &maxT) in Box() function
669 Box<Vec3<T> >::operator == (const Box<Vec3<T> > &src) const
677 Box<Vec3<T> >::operator != (const Box<Vec3<T> > &src) const
684 inline void Box<Vec3<T> >::makeEmpty() in makeEmpty()
691 inline void Box<Vec3<T> >::makeInfinite() in makeInfinite()
700 Box<Vec3<T> >::extendBy (const Vec3<T> &point) in extendBy()
724 Box<Vec3<T> >::extendBy (const Box<Vec3<T> > &box) in extendBy() argument
726 if (box.min[0] < min[0]) in extendBy()
727 min[0] = box.min[0]; in extendBy()
729 if (box.max[0] > max[0]) in extendBy()
730 max[0] = box.max[0]; in extendBy()
732 if (box.min[1] < min[1]) in extendBy()
733 min[1] = box.min[1]; in extendBy()
735 if (box.max[1] > max[1]) in extendBy()
736 max[1] = box.max[1]; in extendBy()
738 if (box.min[2] < min[2]) in extendBy()
739 min[2] = box.min[2]; in extendBy()
741 if (box.max[2] > max[2]) in extendBy()
742 max[2] = box.max[2]; in extendBy()
748 Box<Vec3<T> >::intersects (const Vec3<T> &point) const in intersects()
761 Box<Vec3<T> >::intersects (const Box<Vec3<T> > &box) const in intersects() argument
763 if (box.max[0] < min[0] || box.min[0] > max[0] || in intersects()
764 box.max[1] < min[1] || box.min[1] > max[1] || in intersects()
765 box.max[2] < min[2] || box.min[2] > max[2]) in intersects()
774 Box<Vec3<T> >::size() const in size()
785 Box<Vec3<T> >::center() const in center()
793 Box<Vec3<T> >::isEmpty() const in isEmpty()
805 Box<Vec3<T> >::isInfinite() const in isInfinite()
818 Box<Vec3<T> >::hasVolume() const in hasVolume()
831 Box<Vec3<T> >::majorAxis() const in majorAxis()