Logo Search packages:      
Sourcecode: qt4-x11 version File versions

qreal QLineF::dx (  )  const [inline]

Returns the horizontal component of the line's vector.

See also:
dy(), pointAt()

Definition at line 326 of file qline.h.

References QPointF::x().

Referenced by angle(), intersect(), normalVector(), Arrow::paint(), setAngle(), setLength(), and Mouse::timerEvent().

{
    return pt2.x() - pt1.x();
}


Generated by  Doxygen 1.6.0   Back to index