#include <Tools2D.h>
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. | |
BoundBox2D & | operator= (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 |
Two dimensional bounding box.
Definition at line 77 of file Tools2D.h.
Base::BoundBox2D::BoundBox2D | ( | void | ) | [inline] |
Base::BoundBox2D::BoundBox2D | ( | const BoundBox2D & | rclBB | ) | [inline] |
Base::BoundBox2D::BoundBox2D | ( | float | fX1, | |
float | fY1, | |||
float | fX2, | |||
float | fY2 | |||
) | [inline] |
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] |
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] |
bool Base::BoundBox2D::operator== | ( | const BoundBox2D & | rclBB | ) | const [inline] |
bool BoundBox2D::operator|| | ( | const Polygon2D & | rclPoly | ) | const |
Definition at line 130 of file Tools2D.cpp.
References Base::Line2D::clV1, Base::Line2D::clV2, Base::Polygon2D::Contains(), Contains(), fMaxX, fMaxY, fMinX, fMinY, and Base::Polygon2D::GetCtVectors().
bool BoundBox2D::operator|| | ( | const BoundBox2D & | rclBB | ) | const |
bool BoundBox2D::operator|| | ( | const Line2D & | rclLine | ) | const |
BOUNDBOX2D.
Definition at line 70 of file Tools2D.cpp.
References Base::Line2D::clV1, Base::Line2D::clV2, fMaxX, fMaxY, fMinX, fMinY, Base::Vector2D::fX, Base::Vector2D::fY, and Base::Line2D::IntersectAndContain().
void Base::BoundBox2D::SetVoid | ( | void | ) | [inline] |
Definition at line 95 of file Tools2D.h.
References FLOAT_MAX.
Referenced by Base::BoundBox3< _Precision >::ProjectBox().
float Base::BoundBox2D::fMaxX |
Definition at line 80 of file Tools2D.h.
Referenced by BoundBox2D(), Base::Polygon2D::CalcBoundBox(), Base::Line2D::CalcBoundBox(), Contains(), Reen::ParameterCorrection::GetUVParameters(), Base::BoundBox3< _Precision >::IsInBox(), IsValid(), Base::BoundBox3< _Precision >::operator&&(), operator&=(), operator=(), operator==(), and operator||().
float Base::BoundBox2D::fMaxY |
Definition at line 80 of file Tools2D.h.
Referenced by BoundBox2D(), Base::Polygon2D::CalcBoundBox(), Base::Line2D::CalcBoundBox(), Contains(), Reen::ParameterCorrection::GetUVParameters(), Base::BoundBox3< _Precision >::IsInBox(), IsValid(), Base::BoundBox3< _Precision >::operator&&(), operator&=(), operator=(), operator==(), and operator||().
float Base::BoundBox2D::fMinX |
Definition at line 80 of file Tools2D.h.
Referenced by BoundBox2D(), Base::Polygon2D::CalcBoundBox(), Base::Line2D::CalcBoundBox(), Contains(), Reen::ParameterCorrection::GetUVParameters(), Base::BoundBox3< _Precision >::IsInBox(), IsValid(), Base::BoundBox3< _Precision >::operator&&(), operator&=(), operator=(), operator==(), and operator||().
float Base::BoundBox2D::fMinY |
Definition at line 80 of file Tools2D.h.
Referenced by BoundBox2D(), Base::Polygon2D::CalcBoundBox(), Base::Line2D::CalcBoundBox(), Contains(), Reen::ParameterCorrection::GetUVParameters(), Base::BoundBox3< _Precision >::IsInBox(), IsValid(), Base::BoundBox3< _Precision >::operator&&(), operator&=(), operator=(), operator==(), and operator||().