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

Public Member Functions | Private Attributes

NR::Matrix Class Reference

#include <nr-matrix.h>

List of all members.

Public Member Functions

Coord descrim () const
Coord descrim2 () const
Coord det () const
Matrix inverse () const
bool is_rotation (Coord const eps=1e-6) const
bool is_scale (Coord const eps=1e-6) const
bool is_translation (Coord const eps=1e-6) const
 Matrix (translate const &tm)
 Matrix (double c0, double c1, double c2, double c3, double c4, double c5)
 Matrix ()
 Matrix (Matrix const &m)
 Matrix (scale const &sm)
 Matrix (Geom::Matrix const &m)
 Matrix (rotate const &r)
 operator Geom::Matrix () const
Matrixoperator= (Matrix const &m)
Coordoperator[] (int const i)
Coord operator[] (int const i) const
void set_identity ()
bool test_identity () const

Private Attributes

NR::Coord _c [6]

Detailed Description

The Matrix class.

For purposes of multiplication, points should be thought of as row vectors

p = ( p[X] p[Y] 1 )

to be right-multiplied by transformation matrices

    c[] = | c[0] c[1]  0  |
          | c[2] c[3]  0  |
          | c[4] c[5]  1  |                           

(so the columns of the matrix correspond to the columns (elements) of the result, and the rows of the matrix correspond to columns (elements) of the "input").

Definition at line 48 of file nr-matrix.h.


The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index