SVGMatrix class

SVGMatrix class

Many of SVG’s graphics operations utilize 2x3 matrices of the form: [a c e] [b d f] which, when expanded into a 3x3 matrix for the purposes of matrix arithmetic, become: [a c e] [b d f] [0 0 1]

Inheritance: SVGMatrixSVGValueTypeDOMObject

The SVGMatrix type exposes the following members:

Properties

PropertyDescription
aThe A component of the matrix.
bThe B component of the matrix.
cThe C component of the matrix.
dThe D component of the matrix.
eThe E component of the matrix.
fThe F component of the matrix.

Methods

MethodDescription
get_platform_typeThis method is used to retrieve ECMAScript object Type.
multiplyPerforms matrix multiplication. This matrix is post-multiplied by another matrix, returning the resulting new matrix.
translatePost-multiplies a translation transformation on the current matrix and returns the resulting matrix.
scalePost-multiplies a uniform scale transformation on the current matrix and returns the resulting matrix.
scale_non_uniformPost-multiplies a non-uniform scale transformation on the current matrix and returns the resulting matrix.
rotatePost-multiplies a rotation transformation on the current matrix and returns the resulting matrix.
skew_xPost-multiplies a skewX transformation on the current matrix and returns the resulting matrix.
skew_yPost-multiplies a skewY transformation on the current matrix and returns the resulting matrix.

See Also