Logo Search packages:      
Sourcecode: inkscape version File versions

Matrix NR::operator* ( Matrix const &  m0,
Matrix const &  m1 
)

Multiply two matrices together

Definition at line 196 of file nr-matrix.cpp.

References operator*().

Referenced by operator*().

{
    NR::Coord const d0 = m0[0] * m1[0]  +  m0[1] * m1[2];
    NR::Coord const d1 = m0[0] * m1[1]  +  m0[1] * m1[3];
    NR::Coord const d2 = m0[2] * m1[0]  +  m0[3] * m1[2];
    NR::Coord const d3 = m0[2] * m1[1]  +  m0[3] * m1[3];
    NR::Coord const d4 = m0[4] * m1[0]  +  m0[5] * m1[2]  +  m1[4];
    NR::Coord const d5 = m0[4] * m1[1]  +  m0[5] * m1[3]  +  m1[5];

    Matrix ret( d0, d1, d2, d3, d4, d5 );

    return ret;
}


Generated by  Doxygen 1.6.0   Back to index