BoundingBox2.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 far
Distance to the second (and the last) intersection point.
Definition: BoundingBox2.h:35
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
Vector2< T > upperCorner
Upper corner of the bounding box.
Definition: BoundingBox2.h:51
T near
Distance to the first intersection point.
Definition: BoundingBox2.h:32
Definition: pybind11Utils.h:24
bool isIntersecting
True if the box and ray intersects.
Definition: BoundingBox2.h:29
T Clamp(T val, T low, T high)
Returns the clamped value.
Definition: MathUtils-Impl.h:123
Vector2< T > lowerCorner
Lower corner of the bounding box.
Definition: BoundingBox2.h:48
2-D box-ray intersection result.
Definition: BoundingBox2.h:26
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
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