#include <Tools2D.h>
Public Member Functions | |
BoundBox2d | CalcBoundBox () const |
LINE2D. More... | |
bool | Contains (const Vector2d &rclV) const |
Vector2d | FromPos (double fDistance) const |
bool | Intersect (const Line2d &rclLine, Vector2d &rclV) const |
bool | Intersect (const Vector2d &rclV, double eps) const |
bool | IntersectAndContain (const Line2d &rclLine, Vector2d &rclV) const |
double | Length () const |
Line2d () | |
Line2d (const Line2d &rclLine) | |
Line2d (const Vector2d &rclV1, const Vector2d &rclV2) | |
Line2d & | operator= (const Line2d &rclLine) |
bool | operator== (const Line2d &rclLine) const |
Public Attributes | |
Vector2d | clV1 |
Vector2d | clV2 |
2D line class.
Base::Line2d::Line2d | ( | ) |
Base::Line2d::Line2d | ( | const Line2d & | rclLine | ) |
BoundBox2d Line2d::CalcBoundBox | ( | ) | const |
LINE2D.
References clV1, clV2, Base::BoundBox2d::MaxX, Base::BoundBox2d::MaxY, Base::BoundBox2d::MinX, Base::BoundBox2d::MinY, Base::Vector2d::x, and Base::Vector2d::y.
Referenced by Contains().
References CalcBoundBox(), and Base::BoundBox2d::Contains().
Referenced by IntersectAndContain().
Vector2d Line2d::FromPos | ( | double | fDistance | ) | const |
References clV1, clV2, Base::Vector2d::Normalize(), Base::Vector2d::x, and Base::Vector2d::y.
Referenced by Base::Polygon2d::Intersect().
References clV1, clV2, Base::Vector2d::x, and Base::Vector2d::y.
Referenced by CmdSketcherConstrainAngle::activated(), CmdSketcherConstrainAngle::applyConstraint(), and IntersectAndContain().
References clV1, clV2, Base::Vector2d::x, and Base::Vector2d::y.
References Contains(), and Intersect().
Referenced by Base::BoundBox2d::Intersect(), and Base::Polygon2d::Intersect().
double Base::Line2d::Length | ( | void | ) | const |
Vector2d Base::Line2d::clV1 |
Referenced by CalcBoundBox(), FromPos(), Base::BoundBox2d::Intersect(), Intersect(), Length(), operator=(), and operator==().
Vector2d Base::Line2d::clV2 |
Referenced by CalcBoundBox(), FromPos(), Base::BoundBox2d::Intersect(), Intersect(), Length(), operator=(), and operator==().