#include <qline.h>
Public Types |
|
| enum | IntersectType { NoIntersection, BoundedIntersection, UnboundedIntersection } |
Public Member Functions |
|
| QLineF () | |
| QLineF (const QPointF &pt1, const QPointF &pt2) | |
| QLineF (qreal x1, qreal y1, qreal x2, qreal y2) | |
| QLineF (const QLine &line) | |
| bool | isNull () const |
| QPointF | p1 () const |
| QPointF | p2 () const |
| qreal | x1 () const |
| qreal | y1 () const |
| qreal | x2 () const |
| qreal | y2 () const |
| qreal | dx () const |
| qreal | dy () const |
| qreal | length () const |
| void | setLength (qreal len) |
| qreal | angle () const |
| void | setAngle (qreal angle) |
| qreal | angleTo (const QLineF &l) const |
| QLineF | unitVector () const |
| QLineF | normalVector () const |
| IntersectType | intersect (const QLineF &l, QPointF *intersectionPoint) const |
| qreal | angle (const QLineF &l) const |
| QPointF | pointAt (qreal t) const |
| void | translate (const QPointF &p) |
| void | translate (qreal dx, qreal dy) |
| QLineF | translated (const QPointF &p) const |
| QLineF | translated (qreal dx, qreal dy) const |
| void | setP1 (const QPointF &p1) |
| void | setP2 (const QPointF &p2) |
| void | setPoints (const QPointF &p1, const QPointF &p2) |
| void | setLine (qreal x1, qreal y1, qreal x2, qreal y2) |
| bool | operator== (const QLineF &d) const |
| bool | operator!= (const QLineF &d) const |
| QLine | toLine () const |
Static Public Member Functions |
|
| static QLineF | fromPolar (qreal length, qreal angle) |
| enum IntersectType |
| QLineF | ( | qreal | x1, |
| qreal | y1, | ||
| qreal | x2, | ||
| qreal | y2 | ||
| ) | [inline] |
| static QLineF fromPolar | ( | qreal | length, |
| qreal | angle | ||
| ) | [static] |
| bool isNull | ( | ) | const |
| QPointF p1 | ( | ) | const [inline] |
| QPointF p2 | ( | ) | const [inline] |
| qreal x1 | ( | ) | const [inline] |
| qreal y1 | ( | ) | const [inline] |
| qreal x2 | ( | ) | const [inline] |
| qreal y2 | ( | ) | const [inline] |
| qreal dx | ( | ) | const [inline] |
| qreal dy | ( | ) | const [inline] |
| qreal length | ( | ) | const |
| void setLength | ( | qreal | len | ) | [inline] |
| qreal angle | ( | ) | const |
| void setAngle | ( | qreal | angle | ) |
| qreal angleTo | ( | const QLineF & | l | ) | const |
| QLineF unitVector | ( | ) | const |
| QLineF normalVector | ( | ) | const [inline] |
| IntersectType intersect | ( | const QLineF & | l, |
| QPointF * | intersectionPoint | ||
| ) | const |
| qreal angle | ( | const QLineF & | l | ) | const |
| QPointF pointAt | ( | qreal | t | ) | const [inline] |
| void translate | ( | const QPointF & | p | ) | [inline] |
| void translate | ( | qreal | dx, |
| qreal | dy | ||
| ) | [inline] |
| QLineF translated | ( | qreal | dx, |
| qreal | dy | ||
| ) | const [inline] |
Definition at line 355 of file qline.h.
{
return translated(QPointF(adx, ady));
}
| void setP1 | ( | const QPointF & | p1 | ) | [inline] |
| void setP2 | ( | const QPointF & | p2 | ) | [inline] |
| void setLine | ( | qreal | x1, |
| qreal | y1, | ||
| qreal | x2, | ||
| qreal | y2 | ||
| ) | [inline] |
| bool operator== | ( | const QLineF & | d | ) | const [inline] |
| bool operator!= | ( | const QLineF & | d | ) | const [inline] |
| QLine toLine | ( | ) | const [inline] |