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 :
- m : The array to copy to this matrix (optional).
public applyTo(point)
Applying the matrix to a point. Just a simple multiplication.
Parameters :
- point : The point to transform.
Returns :
The transformed point.
public clone()
Cloning the matrix.
Returns :
The exact same matrix.
public multiply(m2)
Multiplying this matrix with another
Parameters :
- m2 : The matrix to multipy with.
public rotate(angle)
Applying a rotation to the matrix
Parameters :
- angle : The angle for the rotation.
public scale(sX, sY)
Scaling the matrix
Parameters :
- sX : The x scale factor.
- sY : The y scale factor.
public translate(x, y)
Applying a translation to the matrix
Parameters :
- x : The x translation.
- y : The y translation.