Class BiTran2
Defined in: lina.js.
Constructor Attributes | Constructor Name and Description |
---|---|
BiTran2(m)
Creates 3x3 homogenous transformation that also maintains its own inversion.
|
Field Attributes | Field Name and Description |
---|---|
Matrix3 that stores the inverse transformation.
|
|
Matrix3 that stores the transformation.
|
Method Attributes | Method Name and Description |
---|---|
copy()
Create and return a copy of this matrix.
|
|
mult(mb)
Apply transformation (in-place) and return this instance.
|
|
reset()
Reset the current matrix to identity.
|
|
rotate(a, pt)
Apply rotation (in-place) and return this instance.
|
|
scale(fx, fy)
Apply scaling (in-place) and return this instance.
|
|
set(m)
Set the current matrix.
|
|
toString()
Return string representation '[[0, 1, 2], [3, 4, 5], [6, 7, 8]]'.
|
|
translate(dx, dy)
Apply translation (in-place) and return this instance.
|
Class Detail
BiTran2(m)
Creates 3x3 homogenous transformation that also maintains its own inversion.
This is usually more effient than calling m.invert().
- Parameters:
- {undefined|Matrix3|float[9]} m
Field Detail
{Matrix3}
inverse
Matrix3 that stores the inverse transformation.
{Matrix3}
matrix
Matrix3 that stores the transformation.
Method Detail
copy()
Create and return a copy of this matrix.
mult(mb)
Apply transformation (in-place) and return this instance.
- Parameters:
- mb
{BiTran2}
reset()
Reset the current matrix to identity.
- Returns:
- {BiTran2}
rotate(a, pt)
Apply rotation (in-place) and return this instance.
- Parameters:
- a
- pt
scale(fx, fy)
Apply scaling (in-place) and return this instance.
- Parameters:
- fx
- fy
{Matrix3}
set(m)
Set the current matrix.
- Parameters:
- {Matrix3|float[9]} m
- (optional) defaults to identity matrix [1, 0, 0, 0, 1, 0, 0, 0, 1]
- Returns:
- {Matrix3}
{string}
toString()
Return string representation '[[0, 1, 2], [3, 4, 5], [6, 7, 8]]'.
- Returns:
- {string}
translate(dx, dy)
Apply translation (in-place) and return this instance.
- Parameters:
- dx
- dy