#include <Geometry.h>
Public Member Functions | |
void | Add (const Vector2d &rPoint) |
void | Add (const BoundingBox2 &rBoundingBox) |
BoundingBox2 () | |
BoundingBox2 (const Vector2d &rMinimum, const Vector2d &rMaximum) | |
kt_bool | Contains (const Vector2d &rPoint) const |
kt_bool | Contains (const BoundingBox2 &rOther) const |
const Vector2d & | GetMaximum () const |
const Vector2d & | GetMinimum () const |
Size2< kt_double > | GetSize () const |
kt_bool | Intersects (const BoundingBox2 &rOther) const |
void | SetMaximum (const Vector2d &rMaximum) |
void | SetMinimum (const Vector2d &rMinimum) |
Private Attributes | |
Vector2d | m_Maximum |
Vector2d | m_Minimum |
Defines a 2-dimensional bounding box.
Definition at line 1593 of file Geometry.h.
karto::BoundingBox2::BoundingBox2 | ( | ) |
Definition at line 64 of file Geometry.cpp.
Bounding box with given minimum and maximum values.
rMinimum | minimum value |
rMaximum | maximum value |
Definition at line 70 of file Geometry.cpp.
|
inline |
|
inline |
Add given bounding box to this bounding box
rBoundingBox | bounding box |
Definition at line 1670 of file Geometry.h.
Whether the given point is in the bounds of this box
rPoint | point |
Definition at line 1681 of file Geometry.h.
|
inline |
Checks if this bounding box contains the given bounding box
rOther | bounding box |
Definition at line 1712 of file Geometry.h.
|
inline |
|
inline |
Get the size of this bounding box
Definition at line 1649 of file Geometry.h.
|
inline |
Checks if this bounding box intersects with the given bounding box
rOther | bounding box |
Definition at line 1692 of file Geometry.h.
|
inline |
Set bounding box maximum
rMaximum | bounding box maximum |
Definition at line 1640 of file Geometry.h.
|
inline |
Set bounding box minimum
rMinimum | bounding box minimum |
Definition at line 1622 of file Geometry.h.
|
private |
Definition at line 1735 of file Geometry.h.
|
private |
Definition at line 1734 of file Geometry.h.