class Matrix
package js.html.svg
Many of SVG's graphics operations utilize 2x3 matrices of the form:
Documentation SVGMatrix by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See also:
Variables
Methods
flipX():Matrix
Post-multiplies the transformation [-1 0 0 1 0 0] and returns the resulting matrix as SVGMatrix
.
flipY():Matrix
Post-multiplies the transformation [1 0 0 -1 0 0] and returns the resulting matrix as SVGMatrix
.
multiply(secondMatrix:Matrix):Matrix
Performs matrix multiplication. This matrix is post-multiplied by another matrix, returning the resulting new matrix as SVGMatrix
.
rotate(angle:Float):Matrix
Post-multiplies a rotation transformation on the current matrix and returns the resulting matrix as SVGMatrix
.
rotateFromVector(x:Float, y:Float):Matrix
Post-multiplies a rotation transformation on the current matrix and returns the resulting matrix as SVGMatrix
. The rotation angle is determined by taking (+/-) atan(y/x). The direction of the vector (x, y) determines whether the positive or negative angle value is used.
Throws:
null | DOMError |
---|
scale(scaleFactor:Float):Matrix
Post-multiplies a uniform scale transformation on the current matrix and returns the resulting matrix as SVGMatrix
.
scaleNonUniform(scaleFactorX:Float, scaleFactorY:Float):Matrix
Post-multiplies a non-uniform scale transformation on the current matrix and returns the resulting matrix as SVGMatrix
.
skewX(angle:Float):Matrix
Post-multiplies a skewX transformation on the current matrix and returns the resulting matrix as SVGMatrix
.
Throws:
null | DOMError |
---|