20 #ifndef Tulip_BOUNDINGBOX_H 21 #define Tulip_BOUNDINGBOX_H 23 #include <tulip/Vector.h> 24 #include <tulip/tulipconf.h> 80 BoundingBox(
const tlp::Vec3f& min,
const tlp::Vec3f& max);
102 float height()
const;
119 void expand(
const tlp::Vec3f& coord);
127 void translate(
const tlp::Vec3f& vec);
135 void scale(
const tlp::Vec3f& factor);
143 bool isValid()
const;
150 bool contains(
const tlp::Vec3f& coord)
const;
172 bool intersect(
const Vec3f& segStart,
const Vec3f& segEnd)
const;
206 void getCompleteBB(Vec3f bb[8])
const;
211 #endif // Tulip_BOUNDINGBOX_H
This class represents the 3D bounding box of an object. It is mostly used to determine whether or not...
Fixed-size array encapsulation.In debug mode, a bound check is performed at each access. Stream operators implementations are provided.