Logo Search packages:      
Sourcecode: inkscape version File versions

void NR::Matrix::set_identity (  ) 

Set this matrix to Identity

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

Referenced by inverse(), Matrix(), sp_root_init(), sp_root_update(), and SPDesktop::SPDesktop().

{
    NR::Coord *dest = _c;

    *dest++ = 1.0; //0
    *dest++ = 0.0; //1
    *dest++ = 0.0; //2
    *dest++ = 1.0; //3
    // translation
    *dest++ = 0.0; //4
    *dest   = 0.0; //5
}


Generated by  Doxygen 1.6.0   Back to index