Home | Trees | Index | Help |
---|
Package libxml2dom :: Module svg :: Class SVGMatrix |
|
A matrix. See: http://www.w3.org/TR/SVGMobile12/svgudom.html#svg__SVGMatrix
Method Summary | |
---|---|
__init__(self,
a,
b,
c,
d,
e,
f)
| |
__eq__(self,
other)
| |
__ne__(self,
other)
| |
Initialise this object from the trait on the 'node' having the given 'name'. | |
Return the component with the given 'index' (starting at zero) from the... | |
det = ad - cb... | |
Multiply this matrix with 'secondMatrix' and update its contents to the result of the multiplication operation defined as follows: [ a c e ] [ A C E ] [ b d f ] [ B D F ] [ 0 0 1 ] [ 0 0 1 ] Return this object as a result. | |
[ cos(angle) -sin(angle) 0 ]... | |
[ scaleFactor 0 0 ]... | |
[ 1 0 x ]... | |
Set the trait on the given 'node' using the given 'name' according to this object's attributes. |
Class Variable Summary | |
---|---|
SRE_Pattern |
matrix_regexp = matrix\((.*)\)$
|
SRE_Pattern |
rotate_regexp = rotate\((.*)\)$
|
SRE_Pattern |
scale_regexp = scale\((.*)\)$
|
SRE_Pattern |
skewX_regexp = skewX\((.*)\)$
|
SRE_Pattern |
skewY_regexp = skewY\((.*)\)$
|
SRE_Pattern |
translate_regexp = translate\((.*)\)$
|
Method Details |
---|
fromNode(self, node, name)Initialise this object from the trait on the 'node' having the given 'name'. |
getComponent(self, index)Return the component with the given 'index' (starting at zero) from the sequence a, b, c, d, e, f where each element corresponds to the matrix as follows: [ a c e ] [ b d f ] [ 0 0 1 ] |
inverse(self)det = ad - cb See (for example): http://mathworld.wolfram.com/MatrixInverse.html |
mMultiply(self, secondMatrix)Multiply this matrix with 'secondMatrix' and update its contents to the result of the multiplication operation defined as follows: [ a c e ] [ A C E ] [ b d f ] [ B D F ] [ 0 0 1 ] [ 0 0 1 ] Return this object as a result. |
mRotate(self, angle)[ cos(angle) -sin(angle) 0 ] [ sin(angle) cos(angle) 0 ] [ 0 0 1 ] |
mScale(self, scaleFactor)[ scaleFactor 0 0 ] [ 0 scaleFactor 0 ] [ 0 0 1 ] |
mTranslate(self, x, y)[ 1 0 x ] [ 0 1 y ] [ 0 0 1 ] |
toNode(self, node, name)Set the trait on the given 'node' using the given 'name' according to this object's attributes. |
Class Variable Details |
---|
matrix_regexp
|
rotate_regexp
|
scale_regexp
|
skewX_regexp
|
skewY_regexp
|
translate_regexp
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Mon Mar 26 00:58:06 2007 | http://epydoc.sf.net |