Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

NRMatrix * NR::Matrix::copyto ( NRMatrix nrm  )  const

Copy this matrix's value to a NRMatrix

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

References NRMatrix::c.

Referenced by sp_lineargradient_painter_new(), and sp_radialgradient_painter_new().

                                            {

    assert(nrm != NULL);

    Coord const *src = _c;
    Coord *dest = nrm->c;

    *dest++ = *src++;  //0
    *dest++ = *src++;  //1
    *dest++ = *src++;  //2
    *dest++ = *src++;  //3
    *dest++ = *src++;  //4
    *dest   = *src  ;  //5

    return nrm;
}


Generated by  Doxygen 1.6.0   Back to index