#include <Tools2D.h>
Public Member Functions | |
BoundBox2D | CalcBoundBox (void) const |
LINE2D. | |
bool | Contains (const Vector2D &rclV) const |
Vector2D | FromPos (float fDistance) const |
bool | Intersect (const Line2D &rclLine, Vector2D &rclV) const |
bool | IntersectAndContain (const Line2D &rclLine, Vector2D &rclV) const |
float | Length (void) const |
Line2D (const Vector2D &rclV1, const Vector2D &rclV2) | |
Line2D (const Line2D &rclLine) | |
Line2D (void) | |
Line2D & | operator= (const Line2D &rclLine) |
bool | operator== (const Line2D &rclLine) const |
Public Attributes | |
Vector2D | clV1 |
Vector2D | clV2 |
2D line class.
Definition at line 106 of file Tools2D.h.
BoundBox2D Line2D::CalcBoundBox | ( | void | ) | const |
LINE2D.
Definition at line 178 of file Tools2D.cpp.
References clV1, clV2, Base::BoundBox2D::fMaxX, Base::BoundBox2D::fMaxY, Base::BoundBox2D::fMinX, Base::BoundBox2D::fMinY, Base::Vector2D::fX, and Base::Vector2D::fY.
Referenced by Contains().
bool Base::Line2D::Contains | ( | const Vector2D & | rclV | ) | const [inline] |
Definition at line 324 of file Tools2D.h.
References CalcBoundBox(), and Base::BoundBox2D::Contains().
Referenced by IntersectAndContain().
Vector2D Line2D::FromPos | ( | float | fDistance | ) | const |
Definition at line 228 of file Tools2D.cpp.
References clV1, clV2, Base::Vector2D::fX, Base::Vector2D::fY, and Base::Vector2D::Normalize().
Referenced by Base::Polygon2D::Intersect().
Definition at line 188 of file Tools2D.cpp.
References clV1, clV2, FLOAT_MAX, Base::Vector2D::fX, and Base::Vector2D::fY.
Referenced by IntersectAndContain().
Definition at line 235 of file Tools2D.cpp.
References Contains(), and Intersect().
Referenced by Base::Polygon2D::Intersect(), and Base::BoundBox2D::operator||().
float Base::Line2D::Length | ( | void | ) | const [inline] |
bool Base::Line2D::operator== | ( | const Line2D & | rclLine | ) | const [inline] |
Definition at line 109 of file Tools2D.h.
Referenced by CalcBoundBox(), FromPos(), Intersect(), Length(), operator=(), operator==(), and Base::BoundBox2D::operator||().
Definition at line 109 of file Tools2D.h.
Referenced by CalcBoundBox(), FromPos(), Intersect(), Length(), operator=(), operator==(), and Base::BoundBox2D::operator||().