Matrix

Matrix

new Matrix(sx, shy, shx, sy, tx, ty)

Source:

A matrix object for 2D homogenous transformations:
| a b 0 |
| c d 0 |
| e f 1 |
pdf multiplies matrices righthand: v' = v x m1 x m2 x ...

Parameters:
Name Type Description
sx number
shy number
shx number
sy number
tx number
ty number

Members

isIdentity

Source:

rotation

Source:

scaleX

Source:

scaleY

Source:

shx

Source:

shy

Source:

sx

Source:

sy

Source:

tx

Source:

ty

Source:

Methods

applyToPoint()

Source:

applyToRectangle()

Source:

clone()

Source:

Clone the Matrix

decompose()

Source:

inversed()

Source:

join(separator) → {string}

Source:

Join the Matrix Values to a String

Parameters:
Name Type Description
separator string

Specifies a string to separate each pair of adjacent elements of the array. The separator is converted to a string if necessary. If omitted, the array elements are separated with a comma (","). If separator is an empty string, all elements are joined without any characters in between them.

Returns:

A string with all array elements joined.

Type
string

multiply(matrix) → {Matrix}

Source:

Multiply the matrix with given Matrix

Parameters:
Name Type Description
matrix
Returns:
Type
Matrix

toString()

Source: