jaulib v1.3.6
Jau Support Library (C++, Java, ..)
|
Axis Aligned Bounding Box. More...
#include <aabbox2f.hpp>
Public Member Functions | |
AABBox2f () noexcept | |
Create an Axis Aligned bounding box (AABBox) where the low and and high MAX float Values. | |
constexpr | AABBox2f (AABBox2f &&o) noexcept=default |
constexpr | AABBox2f (const AABBox2f &o) noexcept=default |
AABBox2f (const Point2f &bl_, const Point2f &tr_) noexcept | |
Create an AABBox with given bl (low) and tr (high) | |
AABBox2f | box () const noexcept |
bool | contains (const AABBox2f &o) const noexcept |
Returns whether this aabbox2f fully contains given aabbox2f. | |
bool | contains (const float x, const float y) const noexcept |
Check if the point is bounded/contained by this AABBox. | |
bool | contains (const Point2f &p) const noexcept |
Check if the point is bounded/contained by this AABBox. | |
bool | intersects (const AABBox2f &o) const noexcept |
AABBox2f & | operator= (AABBox2f &&) noexcept=default |
AABBox2f & | operator= (const AABBox2f &) noexcept=default |
AABBox2f & | reset () noexcept |
Reset this box to the inverse low/high, allowing the next resize(float, float, float) command to hit. | |
AABBox2f & | resize (const AABBox2f &o) noexcept |
Resize the AABBox to encapsulate another AABox. | |
AABBox2f & | resize (const Point2f &p) noexcept |
Resize the AABBox to encapsulate the passed point. | |
AABBox2f & | resize (float x, float y) noexcept |
Resize the AABBox to encapsulate the passed coordinates. | |
std::string | toString () const noexcept |
Public Attributes | |
Point2f | bl |
bottom left (low) | |
Point2f | tr |
top right (high) | |
Axis Aligned Bounding Box.
Defined by two 3D coordinates (low and high) The low being the the lower left corner of the box, and the high being the upper right corner of the box.
A few references for collision detection, intersections:
Definition at line 34 of file aabbox2f.hpp.
|
inlinenoexcept |
Create an Axis Aligned bounding box (AABBox) where the low and and high MAX float Values.
Definition at line 45 of file aabbox2f.hpp.
Create an AABBox with given bl (low) and tr (high)
Definition at line 52 of file aabbox2f.hpp.
|
constexprdefaultnoexcept |
|
constexprdefaultnoexcept |
|
inlinenoexcept |
Reset this box to the inverse low/high, allowing the next resize(float, float, float)
command to hit.
Definition at line 65 of file aabbox2f.hpp.
Resize the AABBox to encapsulate another AABox.
newBox | AABBox to be encapsulated in |
Definition at line 78 of file aabbox2f.hpp.
|
inlinenoexcept |
Resize the AABBox to encapsulate the passed coordinates.
x | x-axis coordinate value |
y | y-axis coordinate value |
Definition at line 104 of file aabbox2f.hpp.
Resize the AABBox to encapsulate the passed point.
x | x-axis coordinate value |
y | y-axis coordinate value |
Definition at line 130 of file aabbox2f.hpp.
|
inlinenoexcept |
Definition at line 134 of file aabbox2f.hpp.
|
inlinenoexcept |
Check if the point is bounded/contained by this AABBox.
Definition at line 140 of file aabbox2f.hpp.
|
inlinenoexcept |
Check if the point is bounded/contained by this AABBox.
Definition at line 149 of file aabbox2f.hpp.
|
inlinenoexcept |
|
inlinenoexcept |
Returns whether this aabbox2f fully contains given aabbox2f.
Definition at line 176 of file aabbox2f.hpp.
|
inlinenoexcept |
Definition at line 182 of file aabbox2f.hpp.
Point2f jau::math::geom::AABBox2f::bl |
bottom left (low)
Definition at line 37 of file aabbox2f.hpp.
Point2f jau::math::geom::AABBox2f::tr |
top right (high)
Definition at line 39 of file aabbox2f.hpp.