Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

sheep::AABB2 Class Reference

#include <aabb2.h>

List of all members.

Public Member Functions

 AABB2 ()
 Invalidate the AABB.

 AABB2 (const AABB2 &aabb)
 AABB2 (const Point2 &min, const Point2 &max)
void Invalidate ()
bool IsValid () const
void Include (const Point2 &point)
void Include (const AABB2 &aabb)
void Intersect (const AABB2 &aabb)
bool Overlaps (const AABB2 &aabb) const
bool Contains (const Point2 &point) const
Point2 GetCenter () const
Vector2 GetSize () const
void Scale (const Vector2 &scale)
void Extend (const Vector2 &ext)

Static Public Member Functions

AABB2 Biggest ()
 Returns the largest possible bounding box.


Public Attributes

Point2 m_min
Point2 m_max


Constructor & Destructor Documentation

sheep::AABB2::AABB2  )  [inline]
 

Invalidate the AABB.

Definition at line 95 of file aabb2.h.

sheep::AABB2::AABB2 const AABB2 aabb  )  [inline]
 

Definition at line 100 of file aabb2.h.

sheep::AABB2::AABB2 const Point2 min,
const Point2 max
[inline]
 

Definition at line 105 of file aabb2.h.


Member Function Documentation

AABB2 sheep::AABB2::Biggest  )  [inline, static]
 

Returns the largest possible bounding box.

Definition at line 110 of file aabb2.h.

bool sheep::AABB2::Contains const Point2 point  )  const [inline]
 

Definition at line 163 of file aabb2.h.

void sheep::AABB2::Extend const Vector2 ext  )  [inline]
 

Offsets the box corners outward by a given amount on each axis, without affecting the box center.

Definition at line 195 of file aabb2.h.

Point2 sheep::AABB2::GetCenter  )  const [inline]
 

Definition at line 172 of file aabb2.h.

Vector2 sheep::AABB2::GetSize  )  const [inline]
 

Definition at line 177 of file aabb2.h.

void sheep::AABB2::Include const AABB2 aabb  )  [inline]
 

Definition at line 138 of file aabb2.h.

void sheep::AABB2::Include const Point2 point  )  [inline]
 

Definition at line 130 of file aabb2.h.

void sheep::AABB2::Intersect const AABB2 aabb  )  [inline]
 

Warning, calling the Intersect() method may result in an invalid bounding box.

Definition at line 146 of file aabb2.h.

void sheep::AABB2::Invalidate  )  [inline]
 

Definition at line 117 of file aabb2.h.

bool sheep::AABB2::IsValid  )  const [inline]
 

Definition at line 123 of file aabb2.h.

bool sheep::AABB2::Overlaps const AABB2 aabb  )  const [inline]
 

Definition at line 154 of file aabb2.h.

void sheep::AABB2::Scale const Vector2 scale  )  [inline]
 

Scales the box extent by a given factor on each axis without affecting the box center.

Definition at line 182 of file aabb2.h.


Member Data Documentation

Point2 sheep::AABB2::m_max
 

Definition at line 36 of file aabb2.h.

Point2 sheep::AABB2::m_min
 

Definition at line 36 of file aabb2.h.


The documentation for this class was generated from the following file:
Generated on Tue May 11 01:31:54 2004 for toxic by doxygen 1.3.6