class SugMatrix

The matrix manipulation class.

Public Methods

[more] SugMatrix (SugRealType newA, SugRealType newB, SugRealType newC, SugRealType newD, SugRealType newE, SugRealType newF)
The class constructor with helper initializations
[more] SugMatrix ()
The class constructor
[more]SugMatrix& flipX ()
Flips the x component of the matrix
[more]SugMatrix& flipY ()
Flips the y component of the matrix
[more]SugRealType getA ()
Returns the A element of the matrix
[more]SugRealType getB ()
Returns the B element of the matrix
[more]SugRealType getC ()
Returns the C element of the matrix
[more]SugRealType getD ()
Returns the D element of the matrix
[more]SugRealType getE ()
Returns the E element of the matrix
[more]SugRealType getF ()
Returns the F element of the matrix
[more]SugMatrix& inverse ()
Performs the inverse of a matrix
[more]SugMatrix& multiply (SugMatrix& secondMatrix)
Performs a multiply of two matrices
[more]SugMatrix& rotate (SugRealType angle)
Performs a rotation of the matrix
[more]SugMatrix& rotateFromVector (SugRealType x, SugRealType y)
Performs a rotation of the matrix with a given vector
[more]SugMatrix& scale (SugRealType scaleFactor)
Performs a scale the matrix
[more]SugMatrix& scaleNonUniform (SugRealType scaleFactorX, SugRealType scaleFactorY)
Performs a non-uniform scale of the matrix
[more]SugRealType setA (SugRealType newA)
Sets the A element of the matrix
[more]SugRealType setABCDEF (SugRealType newA, SugRealType newB, SugRealType newC, SugRealType newD, SugRealType newE, SugRealType newF)
Sets the A, B, C, D, E, and F elements of the matrix
[more]SugRealType setB (SugRealType newB)
Sets the B element of the matrix
[more]SugRealType setC (SugRealType newC)
Sets the C element of the matrix
[more]SugRealType setD (SugRealType newD)
Sets the D element of the matrix
[more]SugRealType setE (SugRealType newE)
Sets the E element of the matrix
[more]SugRealType setF (SugRealType newF)
Sets the F element of the matrix
[more]SugMatrix& skewX (SugRealType angle)
Skews the x component of the matrix
[more]SugMatrix& skewY (SugRealType angle)
Skews the y component of the matrix
[more]SugMatrix& translate (SugRealType x, SugRealType y)
Performs a translation of the matrix
[more] ~SugMatrix ()
The class destructor

Protected Fields

[more]SugRealType mA
The A element of the matrix
[more]SugRealType mB
The B element of the matrix
[more]SugRealType mC
The C element of the matrix
[more]SugRealType mD
The D element of the matrix
[more]SugRealType mE
The E element of the matrix
[more]SugRealType mF
The F element of the matrix


Documentation

The matrix manipulation class. This is a direct translation of the SVG IDL.
oSugRealType mA
The A element of the matrix

oSugRealType mB
The B element of the matrix

oSugRealType mC
The C element of the matrix

oSugRealType mD
The D element of the matrix

oSugRealType mE
The E element of the matrix

oSugRealType mF
The F element of the matrix

oSugRealType getA()
Returns the A element of the matrix

oSugRealType getB()
Returns the B element of the matrix

oSugRealType getC()
Returns the C element of the matrix

oSugRealType getD()
Returns the D element of the matrix

oSugRealType getE()
Returns the E element of the matrix

oSugRealType getF()
Returns the F element of the matrix

oSugRealType setA(SugRealType newA)
Sets the A element of the matrix

oSugRealType setB(SugRealType newB)
Sets the B element of the matrix

oSugRealType setC(SugRealType newC)
Sets the C element of the matrix

oSugRealType setD(SugRealType newD)
Sets the D element of the matrix

oSugRealType setE(SugRealType newE)
Sets the E element of the matrix

oSugRealType setF(SugRealType newF)
Sets the F element of the matrix

oSugRealType setABCDEF(SugRealType newA, SugRealType newB, SugRealType newC, SugRealType newD, SugRealType newE, SugRealType newF)
Sets the A, B, C, D, E, and F elements of the matrix

oSugMatrix& multiply(SugMatrix& secondMatrix)
Performs a multiply of two matrices

oSugMatrix& inverse()
Performs the inverse of a matrix

oSugMatrix& translate(SugRealType x, SugRealType y)
Performs a translation of the matrix

oSugMatrix& scale(SugRealType scaleFactor)
Performs a scale the matrix

oSugMatrix& scaleNonUniform(SugRealType scaleFactorX, SugRealType scaleFactorY)
Performs a non-uniform scale of the matrix

oSugMatrix& rotate(SugRealType angle)
Performs a rotation of the matrix

oSugMatrix& rotateFromVector(SugRealType x, SugRealType y)
Performs a rotation of the matrix with a given vector

oSugMatrix& flipX()
Flips the x component of the matrix

oSugMatrix& flipY()
Flips the y component of the matrix

oSugMatrix& skewX(SugRealType angle)
Skews the x component of the matrix

oSugMatrix& skewY(SugRealType angle)
Skews the y component of the matrix

o SugMatrix()
The class constructor

o SugMatrix(SugRealType newA, SugRealType newB, SugRealType newC, SugRealType newD, SugRealType newE, SugRealType newF)
The class constructor with helper initializations

o ~SugMatrix()
The class destructor


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.