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