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

#include <Karto.h>

Public Member Functions

void Add (const Vector2< kt_double > &rPoint)
 
void Add (const BoundingBox2 &rBoundingBox)
 
 BoundingBox2 ()
 
const Vector2< kt_double > & GetMaximum () const
 
const Vector2< kt_double > & GetMinimum () const
 
Size2< kt_doubleGetSize () const
 
kt_bool IsInBounds (const Vector2< kt_double > &rPoint) const
 
void SetMaximum (const Vector2< kt_double > &rMaximum)
 
void SetMinimum (const Vector2< kt_double > &mMinimum)
 

Private Attributes

Vector2< kt_doublem_Maximum
 
Vector2< kt_doublem_Minimum
 

Detailed Description

Defines a bounding box in 2-dimensional real space.

Definition at line 2766 of file Karto.h.

Constructor & Destructor Documentation

karto::BoundingBox2::BoundingBox2 ( )
inline

Definition at line 2772 of file Karto.h.

Member Function Documentation

void karto::BoundingBox2::Add ( const Vector2< kt_double > &  rPoint)
inline

Add vector to bounding box

Definition at line 2824 of file Karto.h.

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

Add other bounding box to bounding box

Definition at line 2833 of file Karto.h.

const Vector2<kt_double>& karto::BoundingBox2::GetMaximum ( ) const
inline

Get bounding box maximum

Definition at line 2798 of file Karto.h.

const Vector2<kt_double>& karto::BoundingBox2::GetMinimum ( ) const
inline

Get bounding box minimum

Definition at line 2782 of file Karto.h.

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

Get the size of the bounding box

Definition at line 2814 of file Karto.h.

kt_bool karto::BoundingBox2::IsInBounds ( const Vector2< kt_double > &  rPoint) const
inline

Whether the given point is in the bounds of this box

Parameters
rPoint
Returns
in bounds?

Definition at line 2844 of file Karto.h.

void karto::BoundingBox2::SetMaximum ( const Vector2< kt_double > &  rMaximum)
inline

Set bounding box maximum

Definition at line 2806 of file Karto.h.

void karto::BoundingBox2::SetMinimum ( const Vector2< kt_double > &  mMinimum)
inline

Set bounding box minimum

Definition at line 2790 of file Karto.h.

Member Data Documentation

Vector2<kt_double> karto::BoundingBox2::m_Maximum
private

Definition at line 2852 of file Karto.h.

Vector2<kt_double> karto::BoundingBox2::m_Minimum
private

Definition at line 2851 of file Karto.h.


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


open_karto
Author(s):
autogenerated on Mon Jun 10 2019 14:02:19