default
tkmath
tkmathtkmath.Matrix2x3fadd(Matrix2xf m) - Add another matrix m to this instance
getA() : float - Get value of a element
getAbs() : float - Calculate the Hilbert-Schmidt norm of the matrix
getAbsSqr() : float - Calculate the squared Hilbert-Schmidt norm of the matrix
getB() : float - Get value of b element
getC() : float - Get value of c element
getCol(int col) : Vector3f - Get column 'col' values
getD() : float - Get value of d element
getE() : float - Get value of e element
getF() : float - Get value of f element
getRow(int row) : Vector3f - Get row 'row' vector
getString() : String - Get string representation of matrix ((a, b, c), (d, e, f), (g, h, i))
init(float a, b, c, d, e, f) - Initialize matrix (in row-major order)
initColf(int col, float a, b, c) - Initialize matrix column from scalars
initColv(int col, Vector2f v) - Initialize matrix column from vector or array-like object
initIdentity() - Initialize with identity matrix.
initOrtho() -
initRotatef() -
initRow(int row, float a, b, c) - Initialize matrix row from scalars
initRowV(int row, Vector3f v) - Initialize matrix row from vector or array-like object
initScalef() -
initScalev() -
initSkewXf() - a in radians (0..2PI)
initSkewYf() - a in radians (0..2PI)
initTranslatef() -
initTranslatev() -
mul(Matrix2x3f m) - Multiply this instance by matrix m (this * m)
mulf(float f) - Multiply this instance by scalar value f
mulRev(Matrix2x3f m) - Reverse-multiply matrix m by this instance (m * this)
mulv(Vector2f v) : Vector2f - Multiply matrix by a vector
New(float a, b, c, d, e, f) : Matrix2x3f - Initialize and return new instance of Matrix2x3f
rotatef(float ang) - Multiply by rotation matrix (angle is in radian measure)
scalef(float x, y) - Multiply by scale matrix
scalev(Vector2f v) - Multiply by scale matrix
setA(float v) - Set a element to m11
setB(float v) - Set b element to m12
setC(float v) - Set c element to m13
setCol(int c, Vector3f v) - Set column 'col' with values from v
setD(float v) - Set d element to m21
setE(float v) - Set e element to m22
setF(float v) - Set f element to m23
setRow(int row, Vector3f v) - Initialize row 'row' with values from v
sub(Matrix2x3f m) - Substract another matrix m from this instance
translatef(float x, y) - Multiply by translation matrix
translatev(Vector2f v) - Multiply by translation matrix
unit() - Normalise matrix with Hilbert-Schmidt norm
unitScale(float s) - Normalise matrix using Hilbert-Schmidt norm and multiply by s afterwardsMethod add | |||||
Add another matrix m to this instance | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method getA | |||||
Get value of a element | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getAbs | |||||
Calculate the Hilbert-Schmidt norm of the matrix | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getAbsSqr | |||||
Calculate the squared Hilbert-Schmidt norm of the matrix | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getB | |||||
Get value of b element | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getC | |||||
Get value of c element | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getCol | ||||||||||
Get column 'col' values | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Method getD | |||||
Get value of d element | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getE | |||||
Get value of e element | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getF | |||||
Get value of f element | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getRow | ||||||||||
Get row 'row' vector | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Method getString | |||||
Get string representation of matrix ((a, b, c), (d, e, f), (g, h, i)) | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method init | |||||||||||||||||||||||||||||||||||
Initialize matrix (in row-major order) | |||||||||||||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||||||||||||
|
Method initColf | |||||||||||||||||||||||||
Initialize matrix column from scalars | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
|
Method initColv | |||||||||||||||
Initialize matrix column from vector or array-like object | |||||||||||||||
Signature | |||||||||||||||
| |||||||||||||||
Arguments | |||||||||||||||
|
Method initIdentity | |||
Initialize with identity matrix. | |||
Signature | |||
|
Method initOrtho | |||
Signature | |||
|
Method initRotatef | |||
Signature | |||
|
Method initRow | |||||||||||||||||||||||||
Initialize matrix row from scalars | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
|
Method initRowV | |||||||||||||||
Initialize matrix row from vector or array-like object | |||||||||||||||
Signature | |||||||||||||||
| |||||||||||||||
Arguments | |||||||||||||||
|
Method initScalef | |||
Signature | |||
|
Method initScalev | |||
Signature | |||
|
Method initSkewXf | |||
a in radians (0..2PI) | |||
Signature | |||
| |||
Description | |||
see https://www.w3.org/TR/css-transforms-1/#SkewXDefined |
Method initSkewYf | |||
a in radians (0..2PI) | |||
Signature | |||
|
Method initTranslatef | |||
Signature | |||
|
Method initTranslatev | |||
Signature | |||
|
Method mul | |||||
Multiply this instance by matrix m (this * m) | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method mulf | |||||
Multiply this instance by scalar value f | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method mulRev | |||||
Reverse-multiply matrix m by this instance (m * this) | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method mulv | ||||
Multiply matrix by a vector | ||||
Signature | ||||
Arguments | ||||
| ||||
Returns | ||||
|
Method New | ||||||||||||||||||||||||||||||||||||||||
Initialize and return new instance of Matrix2x3f | ||||||||||||||||||||||||||||||||||||||||
Signature | ||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||
Arguments | ||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||
Returns | ||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||
Method rotatef | |||||
Multiply by rotation matrix (angle is in radian measure) | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method scalef | |||||||||||||||
Multiply by scale matrix | |||||||||||||||
Signature | |||||||||||||||
| |||||||||||||||
Arguments | |||||||||||||||
|
Method setA | |||||
Set a element to m11 | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method setB | |||||
Set b element to m12 | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method setC | |||||
Set c element to m13 | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method setCol | |||||||||||||||
Set column 'col' with values from v | |||||||||||||||
Signature | |||||||||||||||
| |||||||||||||||
Arguments | |||||||||||||||
|
Method setD | |||||
Set d element to m21 | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method setE | |||||
Set e element to m22 | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method setF | |||||
Set f element to m23 | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method setRow | |||||||||||||||
Initialize row 'row' with values from v | |||||||||||||||
Signature | |||||||||||||||
| |||||||||||||||
Arguments | |||||||||||||||
|
Method sub | |||||
Substract another matrix m from this instance | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method translatef | |||||||||||||||
Multiply by translation matrix | |||||||||||||||
Signature | |||||||||||||||
| |||||||||||||||
Arguments | |||||||||||||||
|
Method translatev | |||||
Multiply by translation matrix | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method unit | |||
Normalise matrix with Hilbert-Schmidt norm | |||
Signature | |||
|
Method unitScale | |||||
Normalise matrix using Hilbert-Schmidt norm and multiply by s afterwards | |||||
Signature | |||||
| |||||
Arguments | |||||
|
auto-generated by "DOG", the TkScript document generator. Thu, 11/Dec/2025 13:41:59