default
tkmath
tkmathtkmath.Matrix2dadd(Matrix2d m) - Add another matrix m to this instance
det() : Double - Calculate determinant of matrix
getA() : Double - Get value of a element
getAbs() : Double - Calculate the Hilbert-Schmidt norm of the matrix
getAbsSqr() : Double - Calculate the squared Hilbert-Schmidt norm of the matrix
getB() : Double - Get value of b element
getC() : Double - Get value of c element
getCol(int c) : Vector2d - Get column c values
getD() : Double - Get value of d element
getRow(int r) : Vector2d - Get row r values
getString() : String - Get string representation of matrix ((a, b), (c, d))
init(Doubla a, Double b, c, d) - Initialize matrix
initCol(int c, Double a, b) - Initialize column 'col' of the matrix
initColV(int c, Vector2d v) - Initialize column 'col' of the matrix
initf(float a, b, c, d) - Initialize matrix
initIdentity() - Initialize with identity matrix.
initRotatef() -
initRow(int r, Double a, b) - Initialize row r of matrix
initRowV(int r, Vector2d v) - Initialize row 'row' of the matrix
initScalef() -
invert() - Calculate inversion of matrix, so that A*A-1=U
mul(Matrix2d m) - Multiply this instance with matrix m (this * m)
muld(Double v) - Multiply this instance by scalar value v
mulRev(Matrix2d m) - Reverse-multiply matrix m by this instance (m * this)
mulv(Vector2d v) : Vector2d - Multiply this instance with a 2dim vector
New(Double a, b, c, d) : Matrix2d - Initialize and return new instance of Matrix2d
setA(Double v) - Set a element to v
setB(Double v) - Set b element to v
setC(Double v) - Set c element to v
setCol(int c, Vector2d v) - Set column c with values from v
setD(Double v) - Set d element to v
setRow(int r, Vector2d v) - Set row r with values from v
sub(Matrix2d m) - Substract another matrix m from this instance
transpose() - Transpose matrix
unit() - Normalise matrix with Hilbert-Schmidt norm
unitScale(Double v) - Normalise matrix with Hilbert-Schmidt norm and multiply with v afterwards0 1 2 3
Method add | |||||
Add another matrix m to this instance | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method det | |||||
Calculate determinant of matrix | |||||
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 getCol | ||||||||||
Get column c values | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Method getRow | ||||||||||
Get row r values | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Method getString | |||||
Get string representation of matrix ((a, b), (c, d)) | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method init | |
Initialize matrix | |
Signature | |
Arguments | |
Method initCol | |
Initialize column 'col' of the matrix | |
Signature | |
Arguments | |
Method initColV | |||||||||||||||
Initialize column 'col' of the matrix | |||||||||||||||
Signature | |||||||||||||||
| |||||||||||||||
Arguments | |||||||||||||||
|
Method initf | |||||||||||||||||||||||||
Initialize matrix | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
|
Method initIdentity | |||
Initialize with identity matrix. | |||
Signature | |||
|
Method initRotatef | |||
Signature | |||
|
Method initRow | |
Initialize row r of matrix | |
Signature | |
Arguments | |
Method initRowV | |||||||||||||||
Initialize row 'row' of the matrix | |||||||||||||||
Signature | |||||||||||||||
| |||||||||||||||
Arguments | |||||||||||||||
|
Method initScalef | |||
Signature | |||
|
Method invert | |||
Calculate inversion of matrix, so that A*A-1=U | |||
Signature | |||
|
Method mul | |||||
Multiply this instance with matrix m (this * m) | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method muld | |||||
Multiply this instance by scalar value v | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method mulRev | |||||
Reverse-multiply matrix m by this instance (m * this) | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method mulv | ||||
Multiply this instance with a 2dim vector | ||||
Signature | ||||
Arguments | ||||
| ||||
Returns | ||||
|
Method New | |||
Initialize and return new instance of Matrix2d | |||
Signature | |||
Arguments | |||
Returns | |||
|
Method setCol | |||||||||||||||
Set column c with values from v | |||||||||||||||
Signature | |||||||||||||||
| |||||||||||||||
Arguments | |||||||||||||||
|
Method setRow | |||||||||||||||
Set row r with values from v | |||||||||||||||
Signature | |||||||||||||||
| |||||||||||||||
Arguments | |||||||||||||||
|
Method sub | |||||
Substract another matrix m from this instance | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method transpose | |||
Transpose matrix | |||
Signature | |||
|
Method unit | |||
Normalise matrix with Hilbert-Schmidt norm | |||
Signature | |||
|
Method unitScale | |||||
Normalise matrix with Hilbert-Schmidt norm and multiply with v afterwards | |||||
Signature | |||||
| |||||
Arguments | |||||
|
auto-generated by "DOG", the TkScript document generator. Thu, 11/Dec/2025 13:41:59