Matrix3x2

Matrix3x2

A class that is used to transform positions through rotation, scaling and translation.

Constructor

new Matrix3x2(aopt, bopt, copt, dopt, eopt, fopt)

Source:
Parameters:
Name Type Attributes Default Description
a number <optional>
1
b number <optional>
0
c number <optional>
0
d number <optional>
1
e number <optional>
0
f number <optional>
0

Classes

Matrix3x2

Methods

append(m) → {this}

Description:
  • Multiplies with another matrix, A * B = C, where A is this matrix
Source:
Deprecated:
  • Yes
Parameters:
Name Type Description
m Matrix3x2
Returns:
Type
this

clone()

Description:
  • Creates a new matrix,fills its values with this ones and returns the former.
Source:
Deprecated:
  • Yes
Returns:
Matrix3x2

copy(m)

Description:
  • Copies a matrix into this matrix.
Source:
Deprecated:
  • Yes
Parameters:
Name Type Description
m Matrix3x2
Returns:
this

equals(matrix)

Description:
  • Deeply checks if a matrix is equal to another.
Source:
Deprecated:
  • Yes
Parameters:
Name Type Description
matrix Matrix3x2
Returns:
boolean

identity()

Description:
  • Makes a matrix to be an identity matrix.
Source:
Deprecated:
  • Yes
Returns:
this

invert()

Description:
  • Inverts the matrix.
Source:
Deprecated:
  • Yes
Returns:
this

prepend(m)

Description:
  • Multiplies with another matrix, A * B = C, where B is this matrix
Source:
Deprecated:
  • Yes
Parameters:
Name Type Description
m Matrix3x2
Returns:
this

rotate(radians)

Description:
  • Rotates the matrix by the given angle.
Source:
Deprecated:
  • Yes
Parameters:
Name Type Description
radians number
Returns:
this

scale(x, y)

Description:
  • Scales a matrix by a given amount.
Source:
Deprecated:
  • Yes
Parameters:
Name Type Description
x number
y number
Returns:
this

setFromTransform(x, y, scaleX, scaleY, rotation)

Source:
Deprecated:
  • Yes
Parameters:
Name Type Description
x number
y number
scaleX number
scaleY number
rotation number
Returns:
this

transform(v)

Description:
  • Transforms the given vector.
Source:
Deprecated:
  • Yes
Parameters:
Name Type Description
v Vector2

translate(x, y)

Description:
  • Translates a matrix by a given amount.
Source:
Deprecated:
  • Yes
Parameters:
Name Type Description
x number
y number
Returns:
this

(static) copy(matrix)

Source:
Parameters:
Name Type Description
matrix Matrix3x2

(static) invert(matrix)

Source:
Parameters:
Name Type Description
matrix Matrix3x2

(static) multiply(m1, m2)

Source:
Parameters:
Name Type Description
m1 Matrix3x2
m2 Matrix3x2

(static) rotate(matrix, angle)

Source:
Parameters:
Name Type Description
matrix Matrix3x2
angle number

(static) scale(matrix, x, y)

Source:
Parameters:
Name Type Description
matrix Matrix3x2
x number
y number

(static) setFromTransform(matrix, x, y, angle, scaleX, scaleY)

Source:
Parameters:
Name Type Description
matrix Matrix3x2
x number
y number
angle number
scaleX number
scaleY number

(static) transformVector2(matrix, v)

Source:
Parameters:
Name Type Description
matrix Matrix3x2
v Vector_like

(static) translate(matrix, x, y)

Source:
Parameters:
Name Type Description
matrix Matrix3x2
x any
y any