以下成员源于类 QLineF 已过时。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。
(obsolete)
enum
|
IntersectType { NoIntersection, UnboundedIntersection, BoundedIntersection } |
(obsolete)
qreal
|
angle (const QLineF & line ) const |
(obsolete)
QLineF::IntersectType
|
intersect (const QLineF & line , QPointF * intersectionPoint ) const |
This enum is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
使用 QLineF::IntersectionType 代替。
常量 | 值 | 描述 |
---|---|---|
QLineF::NoIntersection
|
0
|
Lines do not intersect. |
QLineF::UnboundedIntersection
|
2
|
Lines intersect, but not within the range defined by their lengths. |
QLineF::BoundedIntersection
|
1
|
Lnes intersect within the range defined by their lengths. |
此函数已过时。提供它是为使旧源代码能继续工作。强烈建议不要在新代码中使用它。
Returns the angle (in degrees) between this line and the given line , taking the direction of the lines into account. If the lines do not intersect within their range, it is the intersection point of the extended lines that serves as origin (see QLineF::UnboundedIntersection ).
When the lines are parallel, this function returns 0 if they have the same direction; otherwise it returns 180.
另请参阅 intersect ().
此函数已过时。提供它是为使旧源代码能继续工作。强烈建议不要在新代码中使用它。
使用 intersects () 代替
Returns a value indicating whether or not this line intersects with the given line .
The actual intersection point is extracted to intersectionPoint (if the pointer is valid). If the lines are parallel, the intersection point is undefined.