Constructor
new TransformationMatrix(a, b, c, d, e, f)
Creates a new TransformationMatrix with the given components.
Name | Type | Description |
---|---|---|
a | number | The a component of the matrix. |
b | number | The b component of the matrix. |
c | number | The c component of the matrix. |
d | number | The d component of the matrix. |
e | number | The e component of the matrix. |
f | number | The f component of the matrix. |
- Source
Classes
Members
a
The a component of the matrix.
- Source
a
The a component of the matrix.
- Source
b
The b component of the matrix.
- Source
b
The b component of the matrix.
- Source
c
The c component of the matrix.
- Source
c
The c component of the matrix.
- Source
d
The d component of the matrix.
- Source
d
The d component of the matrix.
- Source
e
The e component of the matrix.
- Source
e
The e component of the matrix.
- Source
f
The f component of the matrix.
- Source
f
The f component of the matrix.
- Source
Methods
apply(other)
Applies another TransformationMatrix to this matrix.
Name | Type | Description |
---|---|---|
other | TransformationMatrix |
- Source
clone() → {TransformationMatrix}
Clones the TransformationMatrix.
- Source
- Type:
- TransformationMatrix
inverse() → {TransformationMatrix}
Gets the matrix that undoes this TransformationMatrix.
- Source
The inverse matrix.
- Type:
- TransformationMatrix
(static) identity() → {TransformationMatrix}
Returns the identity matrix.
- Source
The identity matrix.
- Type:
- TransformationMatrix
(static) rotate(angle) → {TransformationMatrix}
Gets the matrix that rotates by a given angle in radians.
Name | Type | Description |
---|---|---|
angle | number | The angle in radians to rotate by. |
- Source
The rotated matrix.
- Type:
- TransformationMatrix
(static) scale(x, y) → {TransformationMatrix}
Gets the matrix that scales by a given x and y value.
Name | Type | Description |
---|---|---|
x | number | The x value to scale by. |
y | number | The y value to scale by. |
- Source
The scaled matrix.
- Type:
- TransformationMatrix
(static) translate(x, y) → {TransformationMatrix}
Gets the matrix that translates by a given x and y value.
Name | Type | Description |
---|---|---|
x | number | The x value to translate by. |
y | number | The y value to translate by. |
- Source
The translated matrix.
- Type:
- TransformationMatrix