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

Geom::Matrix Class Reference

#include <matrix.h>

List of all members.

Detailed Description

The Matrix class.

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

$(p_X p_Y 1)$

to be right-multiplied by transformation matrices of the form

\[ \left[ \begin{array}{ccc} c_0&c_1&0 \\ c_2&c_3&0 \\ c_4&c_5&1 \end{array} \right] \]

(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 46 of file matrix.h.

Public Member Functions

Coord descrim () const
Coord descrim2 () const
Coord det () const
Point expansion () const
double expansionX () const
double expansionY () const
bool flips () const
Matrix inverse () const
bool isIdentity (Coord eps=EPSILON) const
bool isRotation (double eps=EPSILON) const
bool isScale (double eps=EPSILON) const
bool isSingular (double eps=EPSILON) const
bool isTranslation (Coord eps=EPSILON) const
bool isUniformScale (double eps=EPSILON) const
 Matrix (Coord c0, Coord c1, Coord c2, Coord c3, Coord c4, Coord c5)
 Matrix (Matrix const &m)
bool onlyScaleAndTranslation (double eps=EPSILON) const
Matrixoperator= (Matrix const &m)
Coordoperator[] (unsigned const i)
Coord operator[] (unsigned const i) const
void setExpansionX (double val)
void setExpansionY (double val)
void setIdentity ()
void setTranslation (Point const &loc)
void setXAxis (Point const &vec)
void setYAxis (Point const &vec)
Point translation () const
Matrix without_translation () const
Point xAxis () const
Point yAxis () const

Private Attributes

Coord _c [6]

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

Generated by  Doxygen 1.6.0   Back to index