Obsolete Members for QLineF

以下成員源於類 QLineF 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。

公共函數

(obsolete) qreal angle (const QLineF & line ) const

成員函數文檔編製

qreal QLineF:: angle (const QLineF & line ) const

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 ().