W3cubDocs

/Haxe JavaScript

Matrix

package js.html.svg

@:native("SVGMatrix") 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:

Variables

a:Float

b:Float

c:Float

d:Float

e:Float

f:Float

Methods

flipX ():Matrix

flipY ():Matrix

inverse ():Matrix

Throws:

null DOMError

multiply (secondMatrix:Matrix):Matrix

rotate (angle:Float):Matrix

rotateFromVector (x:Float, y:Float):Matrix

Throws:

null DOMError

scale (scaleFactor:Float):Matrix

scaleNonUniform (scaleFactorX:Float, scaleFactorY:Float):Matrix

skewX (angle:Float):Matrix

Throws:

null DOMError

skewY (angle:Float):Matrix

Throws:

null DOMError

translate (x:Float, y:Float):Matrix

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/svg/Matrix.html