package js.html.svg
Available on js
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:
a:FloatA float representing the a component of the matrix.
b:FloatA float representing the b component of the matrix.
c:FloatA float representing the c component of the matrix.
d:FloatA float representing the d component of the matrix.
e:FloatA float representing the e component of the matrix.
f:FloatA float representing the f component of the matrix.
flipX():MatrixPost-multiplies the transformation [-1 0 0 1 0 0] and returns the resulting matrix as SVGMatrix.
flipY():MatrixPost-multiplies the transformation [1 0 0 -1 0 0] and returns the resulting matrix as SVGMatrix.
inverse():MatrixReturns the inverse matrix as SVGMatrix.
Throws:
null |
DOMError |
|---|
multiply(secondMatrix:Matrix):MatrixPerforms matrix multiplication. This matrix is post-multiplied by another matrix, returning the resulting new matrix as SVGMatrix.
rotate(angle:Float):MatrixPost-multiplies a rotation transformation on the current matrix and returns the resulting matrix as SVGMatrix.
rotateFromVector(x:Float, y:Float):MatrixPost-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):MatrixPost-multiplies a uniform scale transformation on the current matrix and returns the resulting matrix as SVGMatrix.
scaleNonUniform(scaleFactorX:Float, scaleFactorY:Float):MatrixPost-multiplies a non-uniform scale transformation on the current matrix and returns the resulting matrix as SVGMatrix.
skewX(angle:Float):MatrixPost-multiplies a skewX transformation on the current matrix and returns the resulting matrix as SVGMatrix.
Throws:
null |
DOMError |
|---|
skewY(angle:Float):MatrixPost-multiplies a skewY transformation on the current matrix and returns the resulting matrix as SVGMatrix.
Throws:
null |
DOMError |
|---|
translate(x:Float, y:Float):MatrixPost-multiplies a translation transformation on the current matrix and returns the resulting matrix as SVGMatrix.
© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/svg/Matrix.html