OpenLexocad  27.1
Base::BoundBox2d Class Reference

#include <Tools2D.h>

Public Member Functions

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

Public Attributes

double MinX
 
double MinY
 
double MaxX
 
double MaxY
 

Detailed Description

BoundBox2d Two dimensional bounding box.

Constructor & Destructor Documentation

◆ BoundBox2d() [1/3]

Base::BoundBox2d::BoundBox2d ( void  )
inline

◆ BoundBox2d() [2/3]

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

◆ BoundBox2d() [3/3]

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

Member Function Documentation

◆ Add()

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

◆ Contains() [1/2]

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

◆ Contains() [2/2]

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

◆ GetCenter()

Vector2d Base::BoundBox2d::GetCenter ( void  ) const
inline

◆ Height()

double Base::BoundBox2d::Height ( void  ) const
inline

◆ Intersect() [1/3]

bool Base::BoundBox2d::Intersect ( const Line2d rclLine) const

◆ Intersect() [2/3]

bool Base::BoundBox2d::Intersect ( const BoundBox2d rclBB) const

◆ Intersect() [3/3]

bool Base::BoundBox2d::Intersect ( const Polygon2d rclPoly) const

◆ IsEqual()

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

◆ IsValid()

bool Base::BoundBox2d::IsValid ( void  )
inline

◆ operator=()

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

◆ operator==()

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

◆ SetVoid()

void Base::BoundBox2d::SetVoid ( void  )
inline

◆ Width()

double Base::BoundBox2d::Width ( void  ) const
inline

Member Data Documentation

◆ MaxX

double Base::BoundBox2d::MaxX

◆ MaxY

double Base::BoundBox2d::MaxY

◆ MinX

double Base::BoundBox2d::MinX

◆ MinY

double Base::BoundBox2d::MinY

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