#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 |
Enumerator | |
---|---|
NoIntersection | |
BoundedIntersection | |
UnboundedIntersection |
|
inline |
|
static |
bool isNull | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
qreal length | ( | ) | const |
|
inline |
qreal angle | ( | ) | const |
void setAngle | ( | qreal | angle | ) |
qreal angleTo | ( | const QLineF & | l | ) | const |
QLineF unitVector | ( | ) | const |
|
inline |
Definition at line 334 of file qline.h.
IntersectType intersect | ( | const QLineF & | l, |
QPointF * | intersectionPoint | ||
) | const |
qreal angle | ( | const QLineF & | l | ) | const |
|
inline |
Definition at line 368 of file qline.h.
|
inline |
Definition at line 345 of file qline.h.
|
inline |
Definition at line 355 of file qline.h.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 375 of file qline.h.