BoundingBox3.h
Go to the documentation of this file.
bool Contains(const VectorType &point) const
Returns true if the input point is inside of this box.
Definition: BoundingBox-Impl.h:54
T near
Distance to the first intersection point.
Definition: BoundingBox3.h:32
bool isIntersecting
True if the box and ray intersects.
Definition: BoundingBox3.h:29
VectorType MidPoint() const
Returns the mid-point of this box.
Definition: BoundingBox-Impl.h:68
BoundingBox()
Default constructor.
Definition: BoundingBox-Impl.h:17
Vector3< T > lowerCorner
Lower corner of the bounding box.
Definition: BoundingBox3.h:48
void Reset()
Resets this box to initial state (min=infinite, max=-infinite).
Definition: BoundingBox-Impl.h:107
T far
Distance to the second (and the last) intersection point.
Definition: BoundingBox3.h:35
Definition: pybind11Utils.h:24
T Clamp(T val, T low, T high)
Returns the clamped value.
Definition: MathUtils-Impl.h:123
Vector3< T > upperCorner
Upper corner of the bounding box.
Definition: BoundingBox3.h:51
T DiagonalLength() const
Returns diagonal length of this box.
Definition: BoundingBox-Impl.h:81
void Merge(const VectorType &point)
Merges this and other point.
Definition: BoundingBox-Impl.h:117
3-D box-ray intersection result.
Definition: BoundingBox3.h:26
bool Overlaps(const BoundingBox &other) const
Returns true of this box and other box overlaps.
Definition: BoundingBox-Impl.h:40
T DiagonalLengthSquared() const
Returns squared diagonal length of this box.
Definition: BoundingBox-Impl.h:94