CBox2D Class Reference

#include <Box2D.h>

Public Member Functions

 CBox2D ()
 CBox2D (const Point &minxy, const Point &maxxy)
Point Centre () const
double Height () const
void Insert (const CBox2D &b)
void Insert (const Point &p)
double MaxX () const
double MaxY () const
double MinX () const
double MinY () const
bool operator!= (const CBox2D &rhs) const
bool operator== (const CBox2D &rhs) const
double Radius () const
double Width () const

Public Attributes

Point m_maxxy
Point m_minxy
bool m_valid

Constructor & Destructor Documentation

◆ CBox2D() [1/2]

CBox2D::CBox2D ( )

◆ CBox2D() [2/2]

CBox2D::CBox2D ( const Point minxy,
const Point maxxy 

Member Function Documentation

◆ Centre()

Point CBox2D::Centre ( ) const

References m_maxxy, and m_minxy.

◆ Height()

double CBox2D::Height ( ) const

◆ Insert() [1/2]

void CBox2D::Insert ( const CBox2D b)

References m_maxxy, m_minxy, m_valid, Point::x, and Point::y.

◆ Insert() [2/2]

void CBox2D::Insert ( const Point p)

References m_maxxy, m_minxy, m_valid, Point::x, and Point::y.

◆ MaxX()

double CBox2D::MaxX ( ) const

References m_maxxy, and Point::x.

◆ MaxY()

double CBox2D::MaxY ( ) const

References m_maxxy, and Point::y.

◆ MinX()

double CBox2D::MinX ( ) const

References m_minxy, and Point::x.

◆ MinY()

double CBox2D::MinY ( ) const

References m_minxy, and Point::y.

◆ operator!=()

bool CBox2D::operator!= ( const CBox2D rhs) const

◆ operator==()

bool CBox2D::operator== ( const CBox2D rhs) const

References m_maxxy, m_minxy, and m_valid.

◆ Radius()

double CBox2D::Radius ( ) const

References Height(), and Width().

◆ Width()

Member Data Documentation

◆ m_maxxy

Point CBox2D::m_maxxy

◆ m_minxy

Point CBox2D::m_minxy

◆ m_valid

bool CBox2D::m_valid

Referenced by Height(), Insert(), operator==(), and Width().

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