Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
|
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. More... | |
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) More... | |
AABBox2f | box () const noexcept |
bool | contains (const float x, const float y) const noexcept |
Check if the point is bounded/contained by this AABBox. More... | |
bool | contains (const Point2f &p) const noexcept |
Check if the point is bounded/contained by this AABBox. More... | |
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. More... | |
AABBox2f & | resize (const AABBox2f &o) noexcept |
Resize the AABBox to encapsulate another AABox. More... | |
AABBox2f & | resize (const Point2f &p) noexcept |
Resize the AABBox to encapsulate the passed point. More... | |
AABBox2f & | resize (float x, float y) noexcept |
Resize the AABBox to encapsulate the passed coordinates. More... | |
std::string | toString () const noexcept |
Public Attributes | |
Point2f | bl |
bottom left (low) More... | |
Point2f | tr |
top right (high) More... | |
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 47 of file aabbox2f.hpp.
|
inlinenoexcept |
Create an Axis Aligned bounding box (AABBox) where the low and and high MAX float Values.
Definition at line 58 of file aabbox2f.hpp.
Create an AABBox with given bl (low) and tr (high)
Definition at line 65 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 78 of file aabbox2f.hpp.
Resize the AABBox to encapsulate another AABox.
newBox | AABBox to be encapsulated in |
Definition at line 91 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 117 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 143 of file aabbox2f.hpp.
|
inlinenoexcept |
Definition at line 147 of file aabbox2f.hpp.
|
inlinenoexcept |
Check if the point is bounded/contained by this AABBox.
Definition at line 153 of file aabbox2f.hpp.
|
inlinenoexcept |
Check if the point is bounded/contained by this AABBox.
Definition at line 162 of file aabbox2f.hpp.
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 180 of file aabbox2f.hpp.
Point2f jau::math::geom::AABBox2f::bl |
bottom left (low)
Definition at line 50 of file aabbox2f.hpp.
Point2f jau::math::geom::AABBox2f::tr |
top right (high)
Definition at line 52 of file aabbox2f.hpp.