Public Member Functions | Private Attributes
karto::BoundingBox2 Class Reference

#include <Karto.h>

List of all members.

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

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.

Get bounding box maximum

Definition at line 2798 of file Karto.h.

Get bounding box minimum

Definition at line 2782 of file Karto.h.

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

Definition at line 2852 of file Karto.h.

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 Thu Jun 6 2019 21:02:56