Matrix3
Extends:
Static Method Summary
Static Public Methods | ||
public static |
Makes a copy of the matrix3. |
|
public static |
projection(w: number, h: number): * Static function which returns a projection matrix converting the top left coordinates to 0, 0, and bottom right to w, h. |
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
m: * |
Method Summary
Public Methods | ||
public |
Adds a matrix to this matrix. |
|
public |
Multiplies a matrix into this matrix. |
|
public |
setPosition(x: number, y: number) Sets the translation positions of the matrix with x, y points. |
|
public |
setRotation(rotationDegree: number) Sets the matrix rotation values to rotate an object around the z axis. |
|
public |
Sets the scale values of the matrix with w, h values. |
Inherited Summary
From class Matrix | ||
public |
add(m: *) |
|
public |
copy() |
|
public |
multiply(m: *) |
|
public |
setPosition(x: *, y: *) |
|
public |
setRotation(rotationDegree: *) |
|
public |
setScale(scaleX: *, scaleY: *) |
Static Public Methods
public static copy(matrix: Matrix3): * source
Makes a copy of the matrix3. This is a static function and can be called from Matrix3 prototype.
Override:
Matrix#copyParams:
Name | Type | Attribute | Description |
matrix | Matrix3 | The matrix3 to copy. |
Return:
* |
Public Constructors
public constructor() source
Public Members
public m: * source
Public Methods
public add(m3: Matrix3) source
Adds a matrix to this matrix.
Override:
Matrix#addParams:
Name | Type | Attribute | Description |
m3 | Matrix3 | The matrix to add to this matrix. |
public multiply(m3: Matrix3): * source
Multiplies a matrix into this matrix.
Override:
Matrix#multiplyParams:
Name | Type | Attribute | Description |
m3 | Matrix3 | The matrix to multiply to this matrix. |
Return:
* |
public setPosition(x: number, y: number) source
Sets the translation positions of the matrix with x, y points. This overwrites the values and does not adjust the parameters to work relative to the rest of the matrix values.
Override:
Matrix#setPositionpublic setRotation(rotationDegree: number) source
Sets the matrix rotation values to rotate an object around the z axis. This overwrites the values and does not adjust the parameters to work relative to the rest of the matrix values.
Override:
Matrix#setRotationParams:
Name | Type | Attribute | Description |
rotationDegree | number |
public setScale(x: number, y: number) source
Sets the scale values of the matrix with w, h values. This overwrites the values and does not adjust the parameters to work relative to the rest of the matrix values.