|
| Line2 () |
| Empty.
|
|
| Line2 (const Vector2 &, const Vector2 &) |
| Creates a line in the plane. More...
|
|
| Line2 (const Segment2 &) |
| Creates a line from a segment. More...
|
|
Vector2 | Vertex (int) const |
| Return one of the vertices of the line.
|
|
Vector2 & | Vertex (int) |
| Return one of the vertices of the line.
|
|
bool | Intersection (const Line2 &, Vector2 &) const |
| Compute the intersection between two lines. More...
|
|
bool | Intersection (const Segment2 &, Vector2 &) const |
| Compute the intersection between a line and a segment. More...
|
|
Vector2 | Symmetry (const Vector2 &) const |
| Compute the point symmetric to the line. More...
|
|
Box2 | Symmetry (const Box2 &) const |
| Compute the box bounding the box symmetric to the line. More...
|
|
Circle2 | Symmetry (const Circle2 &) const |
| Compute the circle symmetric to the line. More...
|
|
double | R (const Vector2 &) const |
| Compute the squared distance to the line. More...
|
|
bool | IsLeftOrOn (const Vector2 &, const double &=0.0) const |
| Compute the position of a point with respect to a line. More...
|
|
bool | IsRightOrOn (const Vector2 &, const double &=0.0) const |
| Compute the position of a point with respect to a line. More...
|
|
| Segment2 () |
| Empty.
|
|
| Segment2 (const Vector2 &, const Vector2 &) |
| Creates a planar segment given end vertices. More...
|
|
| Segment2 (const Segment &) |
| Creates a planar segment given a three dimensional segment. More...
|
|
| ~Segment2 () |
| Empty.
|
|
Vector2 | Vertex (int) const |
| Return one of the end vertex of the axis.
|
|
Vector2 & | Vertex (int) |
| Return one of the end vertex of the axis.
|
|
Vector2 | VertexAt (const double &) const |
| Compute a point on the segment. More...
|
|
Vector2 | Center () const |
| Compute the center of the segment.
|
|
Vector2 | GetAxis () const |
| Returns the normalized axis vector.
|
|
Box2 | GetBox () const |
| Compute the bounding box of the segment.
|
|
Vector2 | Orthogonal () const |
| Compute an orthogonal vector to the segment. More...
|
|
void | Translate (const Vector2 &) |
| Translates a segment. More...
|
|
void | Rotate (const Matrix2 &) |
| Translates a segment. More...
|
|
void | Scale (const double &) |
| Uniformly scales a segment. More...
|
|
double | Length () const |
| Return axis length.
|
|
void | Draw (QGraphicsScene &, const QPen &=QPen()) const |
| Draw a segment. More...
|
|
void | DrawArrow (QGraphicsScene &, const double &, const QPen &=QPen(), const QBrush &=QBrush()) const |
| Draw a segment as an arrow. More...
|
|
double | R (const Vector2 &) const |
| Compute the squared distance to the segment. More...
|
|
double | R (const Vector2 &, double &) const |
| Compute the squared distance to the axis edge characterized by its end points. More...
|
|
Vector2 | Normal (const Vector2 &) const |
| Compute the normal vector between a point and its projection onto the segment. More...
|
|
bool | Intersect (const Segment2 &) const |
| Test if two segments intersect. More...
|
|
bool | IntersectOpen (const Segment2 &) const |
| This functions tests if two segments intersect. More...
|
|
bool | Intersection (const Segment2 &, Vector2 &) const |
| Compute the intersection between two segments. More...
|
|