Logo Search packages:      
Sourcecode: inkscape version File versions

NRMatrix* nr_matrix_set_translate ( NRMatrix m,
NR::Coord const   x,
NR::Coord const   y 
)

Set this matrix to a translation of x and y

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

References NRMatrix::c.

{
    NR::Coord *dest = m->c;

    *dest++ = 1.0;   //0
    *dest++ = 0.0;   //1
    *dest++ = 0.0;   //2
    *dest++ = 1.0;   //3
    *dest++ =   x;   //4
    *dest   =   y;   //5

    return m;
}


Generated by  Doxygen 1.6.0   Back to index