default
tkmath
tkmathtkmath.Matrix3fadd(Matrix3f m) - Add another matrix m to this instance
det() : float - Calculate determinant of matrix
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
getG() : float - Get value of g element
getH() : float - Get value of h element
getI() : float - Get value of i 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, g, h, i) - Initialize matrix. The parameters are in matrix order (row(default) or column major).
initCol(int col, float a, b, c) - Initialize matrix column from scalars
initColumnMajor(float a, b, c, d, e, f, g, h, i) - Initialize matrix (column-major arg order. swap args if matrix is in row-major order).
initColv(int col, Vector3f v) - Initialize matrix column from vector or array-like object
initEulerXYX(float a, b, c) - Initialize with euler rotation matrix
initEulerXYZ(float a, b, c) - Initialize with euler rotation matrix
initEulerXZX(float a, b, c) - Initialize with euler rotation matrix
initEulerXZY(float a, b, c) - Initialize with euler rotation matrix
initEulerYXY(float a, b, c) - Initialize with euler rotation matrix
initEulerYXZ(float a, b, c) - Initialize with euler rotation matrix
initEulerYZX(float a, b, c) - Initialize with euler rotation matrix
initEulerYZY(float a, b, c) - Initialize with euler rotation matrix
initEulerZXY(float a, b, c) - Initialize with euler rotation matrix
initEulerZXZ(float a, b, c) - Initialize with euler rotation matrix
initEulerZYX(float a, b, c) - Initialize with euler rotation matrix
initEulerZYZ(float a, b, c) - Initialize with euler rotation matrix
initIdentity() - Initialize with identity matrix.
initRotatef(float x, y) - same as initEulerXYZ()
initRotatev(Vector3f v) - same as initEulerXYZ(v.x, v.y, v.z)
initRowf(int row, float a, b, c) - Initialize matrix row from scalars
initRowMajor(float a, b, c, d, e, f, g, h, i) - Initialize matrix (row-major arg order. swap args if matrix is in column-major order).
initRowv(int row, Vector3f v) - Initialize matrix row from vector or array-like object
initScalef() -
initScalev(float x, y) -
initTranslatef(float x, y) -
initTranslatev() -
initTranspose(float a, b, c, d, e, f, g, h, i) - Initialize matrix (swap arg row/column order).
invert() - Calculate inversion of matrix, so that A*A-1=U
isIdentity() - Check if this is an identity matrix (diagonal=1, other=0)
mul(Matrix3f m) - Multiply this instance by matrix m
mulf(float f) - Multiply this instance by scalar value f
mulv(Vector3f v) : Vector3f - Multiply this instance by a 3dim vector
New(float a, b, c, d, e, f, g, h, i) : Matrix3f - Initialize and return new instance of Matrix3f. The parameters are in matrix order (row(default) or column major).
rotatef(float x, y, z) - Multiply by X=>Y=>Z rotation matrix (radian angles)
rotatev(Vector3f v) - Multiply by v.x=>v.y=>v.z rotation matrix (radian angles)
scalef(float x, y, z) - Multiply by scale matrix
scalev(Vector3f v) - Multiply by scale matrix
setA(float v) - Set a element to v
setB(float v) - Set b element to v
setC(float v) - Set c element to v
setCol(int c, Vector3f v) - Set column 'col' with values from v
setD(float v) - Set d element to v
setE(float v) - Set e element to v
setF(float v) - Set f element to v
setG(float v) - Set g element to v
setH(float v) - Set h element to v
setI(float v) - Set i element to v
setRow(int row, Vector3f v) - Initialize row 'row' with values from v
sub(Matrix3f m) - Substract another matrix m from this instance
translatef(float x, y) - Multiply by translation matrix
translatev(Vector2f v) - Multiply by translation matrix
transpose() - Transpose matrix
unit() - Normalise matrix with Hilbert-Schmidt norm
unitScale(float s) - Normalise matrix using Hilbert-Schmidt norm and multiply by s afterwards
The default layout is row-major.
Method add | |||||
Add another matrix m to this instance | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method det | |||||
Calculate determinant of matrix | |||||
Signature | |||||
| |||||
Returns | |||||
|
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 getG | |||||
Get value of g element | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getH | |||||
Get value of h element | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getI | |||||
Get value of i 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. The parameters are in matrix order (row(default) or column major). | ||||||||||||||||||||||||||||||||||||||||||||||||||
Signature | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||
Arguments | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
Method initCol | |||||||||||||||||||||||||
Initialize matrix column from scalars | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
|
Method initColumnMajor | ||||||||||||||||||||||||||||||||||||||||||||||||||
Initialize matrix (column-major arg order. swap args if matrix is in row-major order). | ||||||||||||||||||||||||||||||||||||||||||||||||||
Signature | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||
Arguments | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
Method initColv | |||||||||||||||
Initialize matrix column from vector or array-like object | |||||||||||||||
Signature | |||||||||||||||
| |||||||||||||||
Arguments | |||||||||||||||
|
Method initEulerXYX | ||||||||||||||||||||
Initialize with euler rotation matrix | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
|
Method initEulerXYZ | ||||||||||||||||||||
Initialize with euler rotation matrix | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
|
Method initEulerXZX | ||||||||||||||||||||
Initialize with euler rotation matrix | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
|
Method initEulerXZY | ||||||||||||||||||||
Initialize with euler rotation matrix | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
|
Method initEulerYXY | ||||||||||||||||||||
Initialize with euler rotation matrix | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
|
Method initEulerYXZ | ||||||||||||||||||||
Initialize with euler rotation matrix | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
|
Method initEulerYZX | ||||||||||||||||||||
Initialize with euler rotation matrix | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
|
Method initEulerYZY | ||||||||||||||||||||
Initialize with euler rotation matrix | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
|
Method initEulerZXY | ||||||||||||||||||||
Initialize with euler rotation matrix | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
|
Method initEulerZXZ | ||||||||||||||||||||
Initialize with euler rotation matrix | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
|
Method initEulerZYX | ||||||||||||||||||||
Initialize with euler rotation matrix | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
|
Method initEulerZYZ | ||||||||||||||||||||
Initialize with euler rotation matrix | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
|
Method initIdentity | |||
Initialize with identity matrix. | |||
Signature | |||
|
Method initRotatef | |||||||||||||||
same as initEulerXYZ() | |||||||||||||||
Signature | |||||||||||||||
| |||||||||||||||
Arguments | |||||||||||||||
|
Method initRotatev | |||||
same as initEulerXYZ(v.x, v.y, v.z) | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method initRowf | |||||||||||||||||||||||||
Initialize matrix row from scalars | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
|
Method initRowMajor | ||||||||||||||||||||||||||||||||||||||||||||||||||
Initialize matrix (row-major arg order. swap args if matrix is in column-major order). | ||||||||||||||||||||||||||||||||||||||||||||||||||
Signature | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||
Arguments | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
Method initRowv | |||||||||||||||
Initialize matrix row from vector or array-like object | |||||||||||||||
Signature | |||||||||||||||
| |||||||||||||||
Arguments | |||||||||||||||
|
Method initScalef | |||
Signature | |||
|
Method initScalev | |||||||||||||||
Signature | |||||||||||||||
| |||||||||||||||
Arguments | |||||||||||||||
|
Method initTranslatef | |||||||||||||||
Signature | |||||||||||||||
| |||||||||||||||
Arguments | |||||||||||||||
|
Method initTranslatev | |||
Signature | |||
|
Method initTranspose | ||||||||||||||||||||||||||||||||||||||||||||||||||
Initialize matrix (swap arg row/column order). | ||||||||||||||||||||||||||||||||||||||||||||||||||
Signature | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||
Arguments | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
Method invert | |||
Calculate inversion of matrix, so that A*A-1=U | |||
Signature | |||
|
Method isIdentity | |||
Check if this is an identity matrix (diagonal=1, other=0) | |||
Signature | |||
|
Method mul | |||||
Multiply this instance by matrix m | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method mulf | |||||
Multiply this instance by scalar value f | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method mulv | ||||
Multiply this instance by a 3dim vector | ||||
Signature | ||||
Arguments | ||||
| ||||
Returns | ||||
|
Method New | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Initialize and return new instance of Matrix3f. The parameters are in matrix order (row(default) or column major). | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Returns | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Method rotatef | ||||||||||||||||||||
Multiply by X=>Y=>Z rotation matrix (radian angles) | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
|
Method rotatev | |||||
Multiply by v.x=>v.y=>v.z rotation matrix (radian angles) | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method scalef | ||||||||||||||||||||
Multiply by scale matrix | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
|
Method setA | |||||
Set a element to v | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method setB | |||||
Set b element to v | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method setC | |||||
Set c element to v | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method setCol | |||||||||||||||
Set column 'col' with values from v | |||||||||||||||
Signature | |||||||||||||||
| |||||||||||||||
Arguments | |||||||||||||||
|
Method setD | |||||
Set d element to v | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method setE | |||||
Set e element to v | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method setF | |||||
Set f element to v | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method setG | |||||
Set g element to v | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method setH | |||||
Set h element to v | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method setI | |||||
Set i element to v | |||||
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 transpose | |||
Transpose matrix | |||
Signature | |||
|
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