public class Matrix

Package :

(default package)

Description :

Can be used for basic transformations. This class doesn't have all matrix features, only JsAs needed ones. Therefore, it shouldn't be used in other contexts.

Methods :

public new(m)

Creates a new public Matrix object.

Parameters :

public applyTo(point)

Applying the matrix to a point. Just a simple multiplication.

Parameters :

Returns :

The transformed point.

public clone()

Cloning the matrix.

Returns :

The exact same matrix.

public multiply(m2)

Multiplying this matrix with another

Parameters :

public rotate(angle)

Applying a rotation to the matrix

Parameters :

public scale(sX, sY)

Scaling the matrix

Parameters :

public translate(x, y)

Applying a translation to the matrix

Parameters :