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

NR::Matrix Class Reference

#include <nr-matrix.h>

List of all members.

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.

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 (rotate const &r)
 Matrix (scale const &sm)
 Matrix (double c0, double c1, double c2, double c3, double c4, double c5)
 Matrix (Geom::Matrix const &m)
 Matrix (Matrix const &m)
 Matrix ()
 operator Geom::Matrix () const
Matrixoperator= (Matrix const &m)
Coord operator[] (int const i) const
Coordoperator[] (int const i)
void set_identity ()
bool test_identity () const

Private Attributes

NR::Coord _c [6]

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

Generated by  Doxygen 1.6.0   Back to index