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

QMatrix & QMatrix::shear ( qreal  sh,
qreal  sv 
)

Shears the coordinate system by sh horizontally and sv vertically, and returns a reference to the matrix.

See also:
setMatrix()

Definition at line 873 of file qmatrix.cpp.

Referenced by QGraphicsItemAnimation::matrixAt().

{
    qreal tm11 = sv*_m21;
    qreal tm12 = sv*_m22;
    qreal tm21 = sh*_m11;
    qreal tm22 = sh*_m12;
    _m11 += tm11;
    _m12 += tm12;
    _m21 += tm21;
    _m22 += tm22;
    return *this;
}


Generated by  Doxygen 1.6.0   Back to index