Base::BoundBox2d Class Reference

BoundBox2d. More...

#include <Tools2D.h>

Public Member Functions

void Add (const Vector2d &v)
 
 BoundBox2d ()
 
 BoundBox2d (const BoundBox2d &rclBB)
 
 BoundBox2d (double fX1, double fY1, double fX2, double fY2)
 
bool Contains (const Vector2d &v) const
 
bool Contains (const Vector2d &v, double tolerance) const
 
Vector2d GetCenter () const
 
double Height () const
 
bool Intersect (const BoundBox2d &rclBB) const
 
bool Intersect (const Line2d &rclLine) const
 BOUNDBOX2d. More...
 
bool Intersect (const Polygon2d &rclPoly) const
 
bool IsEqual (const BoundBox2d &, double tolerance) const
 
bool IsValid ()
 
BoundBox2doperator= (const BoundBox2d &rclBB)
 
bool operator== (const BoundBox2d &rclBB) const
 
void SetVoid ()
 
double Width () const
 

Public Attributes

double MaxX
 
double MaxY
 
double MinX
 
double MinY
 

Detailed Description

BoundBox2d.

Two dimensional bounding box.

Constructor & Destructor Documentation

◆ BoundBox2d() [1/3]

Base::BoundBox2d::BoundBox2d ( )

References MaxX, MaxY, MinX, and MinY.

◆ BoundBox2d() [2/3]

Base::BoundBox2d::BoundBox2d ( const BoundBox2d rclBB)

◆ BoundBox2d() [3/3]

Base::BoundBox2d::BoundBox2d ( double  fX1,
double  fY1,
double  fX2,
double  fY2 
)

References MaxX, MaxY, MinX, and MinY.

Member Function Documentation

◆ Add()

void Base::BoundBox2d::Add ( const Vector2d v)

◆ Contains() [1/2]

bool Base::BoundBox2d::Contains ( const Vector2d v) const

◆ Contains() [2/2]

bool Base::BoundBox2d::Contains ( const Vector2d v,
double  tolerance 
) const

◆ GetCenter()

◆ Height()

◆ Intersect() [1/3]

bool BoundBox2d::Intersect ( const BoundBox2d rclBB) const

References MaxX, MaxY, MinX, and MinY.

◆ Intersect() [2/3]

◆ Intersect() [3/3]

◆ IsEqual()

bool Base::BoundBox2d::IsEqual ( const BoundBox2d b,
double  tolerance 
) const

◆ IsValid()

bool Base::BoundBox2d::IsValid ( )

References MaxX, MaxY, MinX, and MinY.

◆ operator=()

BoundBox2d & Base::BoundBox2d::operator= ( const BoundBox2d rclBB)

References MaxX, MaxY, MinX, and MinY.

◆ operator==()

bool Base::BoundBox2d::operator== ( const BoundBox2d rclBB) const

References MaxX, MaxY, MinX, and MinY.

◆ SetVoid()

void Base::BoundBox2d::SetVoid ( )

References MaxX, MaxY, MinX, and MinY.

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

◆ Width()

Member Data Documentation

◆ MaxX

◆ MaxY

◆ MinX

◆ MinY


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