BoundingBox2-Impl.h
Go to the documentation of this file.
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 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
Vector2< T > direction
The direction of the ray.
Definition: Ray2.h:32
void Reset()
Resets this box to initial state (min=infinite, max=-infinite).
Definition: BoundingBox-Impl.h:107
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
VectorType lowerCorner
Lower corner of the bounding box.
Definition: BoundingBox.h:31
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