BoundingBox3-Impl.h
Go to the documentation of this file.
258 return (lowerCorner.x >= upperCorner.x || lowerCorner.y >= upperCorner.y || lowerCorner.z >= upperCorner.z);
VectorType upperCorner
Upper corner of the bounding box.
Definition: BoundingBox.h:34
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
Vector3< T > direction
The direction of the ray.
Definition: Ray3.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
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
VectorType lowerCorner
Lower corner of the bounding box.
Definition: BoundingBox.h:31
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