Public Member Functions | Private Attributes | List of all members
karto::BoundingBox2 Class Reference

#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 Vector2dGetMaximum () const
 
const Vector2dGetMinimum () const
 
Size2< kt_doubleGetSize () 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
 

Detailed Description

Defines a 2-dimensional bounding box.

Definition at line 1593 of file Geometry.h.

Constructor & Destructor Documentation

karto::BoundingBox2::BoundingBox2 ( )

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.

Parameters
rMinimumminimum value
rMaximummaximum value

Definition at line 70 of file Geometry.cpp.

Member Function Documentation

void karto::BoundingBox2::Add ( const Vector2d rPoint)
inline

Add vector to bounding box

Parameters
rPointpoint

Definition at line 1660 of file Geometry.h.

void karto::BoundingBox2::Add ( const BoundingBox2 rBoundingBox)
inline

Add given bounding box to this bounding box

Parameters
rBoundingBoxbounding 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

Parameters
rPointpoint
Returns
whether the given point is in the bounds of this box

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

Parameters
rOtherbounding box
Returns
true if this bounding box contains the given bounding box

Definition at line 1712 of file Geometry.h.

const Vector2d& karto::BoundingBox2::GetMaximum ( ) const
inline

Get bounding box maximum

Returns
bounding box maximum

Definition at line 1631 of file Geometry.h.

const Vector2d& karto::BoundingBox2::GetMinimum ( ) const
inline

Get bounding box minimum

Returns
bounding box minimum

Definition at line 1613 of file Geometry.h.

Size2<kt_double> karto::BoundingBox2::GetSize ( ) const
inline

Get the size of this bounding box

Returns
bounding box size

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

Parameters
rOtherbounding box
Returns
true if this bounding box intersects with the given bounding box

Definition at line 1692 of file Geometry.h.

void karto::BoundingBox2::SetMaximum ( const Vector2d rMaximum)
inline

Set bounding box maximum

Parameters
rMaximumbounding box maximum

Definition at line 1640 of file Geometry.h.

void karto::BoundingBox2::SetMinimum ( const Vector2d rMinimum)
inline

Set bounding box minimum

Parameters
rMinimumbounding box minimum

Definition at line 1622 of file Geometry.h.

Member Data Documentation

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.


The documentation for this class was generated from the following files:


nav2d_karto
Author(s): Sebastian Kasperski
autogenerated on Thu Jun 6 2019 19:20:25