Vector3< double > GetClosestPoint(const Vector3< double > &pos) const
Get the closest point in the AABB from a given point.
const Vector3< double > & GetHalfSize() const
bool Intersect(const Vector3< double > &origin, const Vector3< double > &direction) const
Vector3< double > GetMin() const
double GetVolume() const
Get the volume of this AABB.
bool operator==(const AABB &other) const
AABB & Translate(const Vector3< double > &t)
bool operator<(const AABB &other) const
const Vector3< double > & GetCenter() const
bool Collide(const AABB &b) const
Vector3< double > half_size
friend AABB operator+(AABB box, const Vector3< T > &offset)
AABB & Inflate(const double d)
Vector3< double > GetMax() const