Base::BoundBox2D Class Reference

BoundBox2D. More...

#include <Tools2D.h>

List of all members.

Public Member Functions

 BoundBox2D (float fX1, float fY1, float fX2, float fY2)
 BoundBox2D (const BoundBox2D &rclBB)
 BoundBox2D (void)
bool Contains (const Vector2D &rclV) const
bool IsValid (void)
void operator&= (const Vector2D &rclVct)
 INLINES.
BoundBox2Doperator= (const BoundBox2D &rclBB)
bool operator== (const BoundBox2D &rclBB) const
bool operator|| (const Polygon2D &rclPoly) const
bool operator|| (const BoundBox2D &rclBB) const
bool operator|| (const Line2D &rclLine) const
 BOUNDBOX2D.
void SetVoid (void)

Public Attributes

float fMaxX
float fMaxY
float fMinX
float fMinY

Detailed Description

BoundBox2D.

Two dimensional bounding box.

Definition at line 77 of file Tools2D.h.


Constructor & Destructor Documentation

Base::BoundBox2D::BoundBox2D ( void   )  [inline]

Definition at line 329 of file Tools2D.h.

References FLOAT_MAX, fMaxX, fMaxY, fMinX, and fMinY.

Base::BoundBox2D::BoundBox2D ( const BoundBox2D rclBB  )  [inline]

Definition at line 335 of file Tools2D.h.

Base::BoundBox2D::BoundBox2D ( float  fX1,
float  fY1,
float  fX2,
float  fY2 
) [inline]

Definition at line 343 of file Tools2D.h.

References fMaxX, fMaxY, fMinX, and fMinY.


Member Function Documentation

bool BoundBox2D::Contains ( const Vector2D rclV  )  const

Definition at line 168 of file Tools2D.cpp.

References fMaxX, fMaxY, fMinX, fMinY, Base::Vector2D::fX, and Base::Vector2D::fY.

Referenced by Base::Line2D::Contains(), and operator||().

bool Base::BoundBox2D::IsValid ( void   )  [inline]

Definition at line 351 of file Tools2D.h.

References fMaxX, fMaxY, fMinX, and fMinY.

void Base::BoundBox2D::operator&= ( const Vector2D rclVct  )  [inline]

INLINES.

Definition at line 163 of file Tools2D.h.

References fMaxX, fMaxY, fMinX, fMinY, Base::Vector2D::fX, and Base::Vector2D::fY.

BoundBox2D & Base::BoundBox2D::operator= ( const BoundBox2D rclBB  )  [inline]

Definition at line 356 of file Tools2D.h.

References fMaxX, fMaxY, fMinX, and fMinY.

bool Base::BoundBox2D::operator== ( const BoundBox2D rclBB  )  const [inline]

Definition at line 365 of file Tools2D.h.

References fMaxX, fMaxY, fMinX, and fMinY.

bool BoundBox2D::operator|| ( const Polygon2D rclPoly  )  const
bool BoundBox2D::operator|| ( const BoundBox2D rclBB  )  const

Definition at line 107 of file Tools2D.cpp.

References fMaxX, fMaxY, fMinX, and fMinY.

bool BoundBox2D::operator|| ( const Line2D rclLine  )  const
void Base::BoundBox2D::SetVoid ( void   )  [inline]

Definition at line 95 of file Tools2D.h.

References FLOAT_MAX.

Referenced by Base::BoundBox3< _Precision >::ProjectBox().


Member Data Documentation


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

Generated on Wed Nov 23 19:01:46 2011 for FreeCAD by  doxygen 1.6.1