SVGMatrix

@native @JSGlobal @JSType
class SVGMatrix extends Object

Many of SVG's graphics operations utilize 2x3 matrices of the form:

class Object
trait Any
class Object
trait Matchable
class Any

Value members

Concrete methods

Post-multiplies the transformation [-1 0 0 1 0 0] and returns the resulting matrix.

Post-multiplies the transformation [-1 0 0 1 0 0] and returns the resulting matrix.

Post-multiplies the transformation [1 0 0 -1 0 0] and returns the resulting matrix.

Post-multiplies the transformation [1 0 0 -1 0 0] and returns the resulting matrix.

Return the inverse matrix Exceptions: a DOMException with code SVG_MATRIX_NOT_INVERTABLE is raised if the matrix is not invertable.

Return the inverse matrix Exceptions: a DOMException with code SVG_MATRIX_NOT_INVERTABLE is raised if the matrix is not invertable.

def multiply(secondMatrix: SVGMatrix): SVGMatrix

Performs matrix multiplication. This matrix is post-multiplied by another matrix, returning the resulting new matrix.

Performs matrix multiplication. This matrix is post-multiplied by another matrix, returning the resulting new matrix.

def rotate(angle: Double): SVGMatrix

Post-multiplies a rotation transformation on the current matrix and returns the resulting matrix.

Post-multiplies a rotation transformation on the current matrix and returns the resulting matrix.

def rotateFromVector(x: Double, y: Double): SVGMatrix

Post-multiplies a rotation transformation on the current matrix and returns the resulting matrix. 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. Exceptions: a DOMException with code SVG_INVALID_VALUE_ERR is raised if one of the parameters has an invalid value.

Post-multiplies a rotation transformation on the current matrix and returns the resulting matrix. 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. Exceptions: a DOMException with code SVG_INVALID_VALUE_ERR is raised if one of the parameters has an invalid value.

def scale(scaleFactor: Double): SVGMatrix

Post-multiplies a uniform scale transformation on the current matrix and returns the resulting matrix.

Post-multiplies a uniform scale transformation on the current matrix and returns the resulting matrix.

def scaleNonUniform(scaleFactorX: Double, scaleFactorY: Double): SVGMatrix

Post-multiplies a non-uniform scale transformation on the current matrix and returns the resulting matrix.

Post-multiplies a non-uniform scale transformation on the current matrix and returns the resulting matrix.

def skewX(angle: Double): SVGMatrix

Post-multiplies a skewX transformation on the current matrix and returns the resulting matrix.

Post-multiplies a skewX transformation on the current matrix and returns the resulting matrix.

def skewY(angle: Double): SVGMatrix

Post-multiplies a skewY transformation on the current matrix and returns the resulting matrix.

Post-multiplies a skewY transformation on the current matrix and returns the resulting matrix.

def translate(x: Double, y: Double): SVGMatrix

Post-multiplies a translation transformation on the current matrix and returns the resulting matrix.

Post-multiplies a translation transformation on the current matrix and returns the resulting matrix.

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from:
Object
def isPrototypeOf(v: Object): Boolean
Inherited from:
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from:
Object
def toLocaleString(): String
Inherited from:
Object
def valueOf(): Any
Inherited from:
Object

Concrete fields

var a: Double
var b: Double
var c: Double
var d: Double
var e: Double
var f: Double