default
tkmath
tkmathtkmath.Matrix4fadd(Matrix4f m) - Add another matrix m to this instance
BuildEulerXYX4f(float a, b, c) : Matrix4f - Build an euler rotation matrix with XYX convention
BuildEulerXYZ4f(float a, b, c) : Matrix4f - Build an euler rotation matrix with XYZ convention
BuildEulerXZX4f(float a, b, c) : Matrix4f - Build an euler rotation matrix with XZX convention
BuildEulerXZY4f(float a, b, c) : Matrix4f - Build an euler rotation matrix with XZY convention
BuildEulerYXY4f(float a, b, c) : Matrix4f - Build an euler rotation matrix with YXY convention
BuildEulerYXZ4f(float a, b, c) : Matrix4f - Build an euler rotation matrix with YXZ convention
BuildEulerYZX4f(float a, b, c) : Matrix4f - Build an euler rotation matrix with YZX convention
BuildEulerYZY4f(float a, b, c) : Matrix4f - Build an euler rotation matrix with YZY convention
BuildEulerZXY4f(float a, b, c) : Matrix4f - Build an euler rotation matrix with ZXY convention
BuildEulerZXZ4f(float a, b, c) : Matrix4f - Build an euler rotation matrix with ZXZ convention
BuildEulerZYX4f(float a, b, c) : Matrix4f - Build an euler rotation matrix with ZYX convention
BuildEulerZYZ4f(float a, b, c) : Matrix4f - Build an euler rotation matrix with ZYZ convention
BuildLookAtMatrix4f(Vector3f eye, center, up) : Matrix4f - Build a look at matrix
BuildPerspectiveMatrix4f(float fov, aspect, zNear, zFar) : Matrix4f - Builds a perspective matrix
BuildRotateMatrix4f(float angle, Vector3f axis) : Matrix4f - Build a rotation matrix
BuildScaleMatrix4f(Vector3f scale) : Matrix4f - Build a scale matrix
BuildTranslateMatrix4f(Vector3f t) : Matrix4f - Build a translation matrix
det() : float - Calculate determinant of matrix
extractPlanes(Vector4f retN, retF, retL, retR, retT, retB) - Extract normalized planes from projection matrix (e.g. for view-frustum culling)
frustum(float left, right, bottom, top, znear, zfar) - Multiply by frustum matrix
frustumFovXY(float left, right, bottom, top, aspect, fovX, fovY, znear, zfar) - Multiply by frustum matrix (fields of view are in degrees)
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 c) : Vector4f - Get column c 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
getJ() : float - Get value of j element
getK() : float - Get value of k element
getL() : float - Get value of l element
getM() : float - Get value of m element
getN() : float - Get value of n element
getO() : float - Get value of o element
getP() : float - Get value of p element
getQuaternionf() : Quaternionf - Tries to find a Quaternion representation of the matrix if possible
getRC(int row, col) - Get element at (row, column)
getRow(int r) : Vector4f - Get row r values
getString() : String - Get string representation of matrix ((a, b, c, d), (e, f, g, h), (i, j, k, l), (m, n, o, p))
init(float a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) - Initialize matrix (in native order, default is row-major)
initColf(int col, float a, b, c, d) - Initialize matrix column from scalars
initColumnMajor(float a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) - Initialize matrix (args are in column major (OpenGL) order, convert to matrix order as required)
initColv(int c, Vector4f 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
initFrustum() -
initFrustumFov() - (field of view is in degrees)
initFrustumFovXY(float left, right, bottom, top, aspect, fovX, fovY, znear, zfar) - (field of view is in degrees)
initIdentity() - Initialize with identity matrix.
initLookAt() - Init look-at matrix
initOrtho() -
initPerspective() - Init perspective matrix
initRotate() - Init rotation matrix (rotate about axis vector)
initRotatef() - Init X=>Y=>Z rotation matrix (initEulerXYZ())
initRotatev() - Init v.x=>v.y=>v.z rotation matrix (initEulerXYZ())
initRowf(int row, float a, b, c, d) - Initialize matrix row from scalars
initRowMajor(float a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) - Initialize matrix (args are in row major order, convert to matrix order as required)
initRowv(int row, Vector4f 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() -
initTranspose(float a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) - Initialize matrix (flip row/column major order, default is row-major)
invert() - Calculate inversion of matrix, so that A*A-1=U
isIdentity() - Check if this is an identity matrix (diagonal=1, other=0)
lookAt(Object eye, center, up) - Multiply by look-at matrix
mul(Matrix4f m) - Multiply this instance with matrix m (this * m)
mulf(float s) - Multiply this instance with scalar value s
mulRev(Matrix4f m) - Reverse-multiply matrix m by this instance (m * this)
mulv(Vector4f v) : Vector4f - Multiply this instance with a 4dim vector
mulvRev(Vector4f v) : Vector4f - Multiply this transposed instance with a 4dim vector
New(Object o) : Matrix4f - Initialize from an array and return new instance of Matrix4f
ortho(float left, right, bottom, top, znear, zfar) - Multiply by orthogonal matrix
perspective(float fov, aspect, znear, zfar) - Multiply by perspective matrix
rotate(float angle, Object axis) - Multiply by rotation matrix
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
set(int row, col, float v) - Set element at (row, column) to v
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, Vector4f v) - Set column c 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
setJ(float v) - Set j element to v
setK(float v) - Set k element to v
setL(float v) - Set l element to v
setM(float v) - Set m element to v
setN(float v) - Set n element to v
setO(float v) - Set o element to v
setP(float v) - Set p element to v
setRow(int r, Vector4f v) - Set row r with values from v
sub(Matrix4f m) - Substract another matrix m from this instance
translatef(float x, y, z) - Multiply by translation matrix
translatev(Vector3f v) - Multiply by translation matrix
transpose() - Transpose matrix
unit() - Normalise matrix with Hilbert-Schmidt norm
unitScale(float v) - Normalise matrix with Hilbert-Schmidt norm and scale by v afterwards
The default layout is row-major.
Method add | |||||
Add another matrix m to this instance | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method BuildEulerXYX4f | |||||||||||||||||||||||||
Build an euler rotation matrix with XYX convention | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Returns | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Method BuildEulerXYZ4f | |||||||||||||||||||||||||
Build an euler rotation matrix with XYZ convention | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Returns | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Method BuildEulerXZX4f | |||||||||||||||||||||||||
Build an euler rotation matrix with XZX convention | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Returns | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Method BuildEulerXZY4f | |||||||||||||||||||||||||
Build an euler rotation matrix with XZY convention | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Returns | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Method BuildEulerYXY4f | |||||||||||||||||||||||||
Build an euler rotation matrix with YXY convention | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Returns | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Method BuildEulerYXZ4f | |||||||||||||||||||||||||
Build an euler rotation matrix with YXZ convention | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Returns | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Method BuildEulerYZX4f | |||||||||||||||||||||||||
Build an euler rotation matrix with YZX convention | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Returns | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Method BuildEulerYZY4f | |||||||||||||||||||||||||
Build an euler rotation matrix with YZY convention | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Returns | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Method BuildEulerZXY4f | |||||||||||||||||||||||||
Build an euler rotation matrix with ZXY convention | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Returns | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Method BuildEulerZXZ4f | |||||||||||||||||||||||||
Build an euler rotation matrix with ZXZ convention | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Returns | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Method BuildEulerZYX4f | |||||||||||||||||||||||||
Build an euler rotation matrix with ZYX convention | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Returns | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Method BuildEulerZYZ4f | |||||||||||||||||||||||||
Build an euler rotation matrix with ZYZ convention | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Returns | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Method BuildLookAtMatrix4f | |||
Build a look at matrix | |||
Signature | |||
Arguments | |||
Returns | |||
|
Method BuildPerspectiveMatrix4f | ||||||||||||||||||||||||||||||
Builds a perspective matrix | ||||||||||||||||||||||||||||||
Signature | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
Arguments | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
Returns | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
Method BuildRotateMatrix4f | ||||||||
Build a rotation matrix | ||||||||
Signature | ||||||||
Arguments | ||||||||
| ||||||||
Returns | ||||||||
|
Method BuildScaleMatrix4f | ||||
Build a scale matrix | ||||
Signature | ||||
Arguments | ||||
| ||||
Returns | ||||
|
Method BuildTranslateMatrix4f | ||||
Build a translation matrix | ||||
Signature | ||||
Arguments | ||||
| ||||
Returns | ||||
|
Method det | |||||
Calculate determinant of matrix | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method extractPlanes | |
Extract normalized planes from projection matrix (e.g. for view-frustum culling) | |
Signature | |
Arguments | |
Method frustum | |||||||||||||||||||||||||||||||||||
Multiply by frustum matrix | |||||||||||||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||||||||||||
|
Method frustumFovXY | ||||||||||||||||||||||||||||||||||||||||||||||||||
Multiply by frustum matrix (fields of view are in degrees) | ||||||||||||||||||||||||||||||||||||||||||||||||||
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 c 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 getJ | |||||
Get value of j element | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getK | |||||
Get value of k element | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getL | |||||
Get value of l element | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getM | |||||
Get value of m element | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getN | |||||
Get value of n element | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getO | |||||
Get value of o element | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getP | |||||
Get value of p element | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getQuaternionf | |||||
Tries to find a Quaternion representation of the matrix if possible | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getRC | |||||||||||||||
Get element at (row, column) | |||||||||||||||
Signature | |||||||||||||||
| |||||||||||||||
Arguments | |||||||||||||||
|
Method getRow | ||||||||||
Get row r values | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Method getString | |||||
Get string representation of matrix ((a, b, c, d), (e, f, g, h), (i, j, k, l), (m, n, o, p)) | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method init | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Initialize matrix (in native order, default is row-major) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Method initColf | ||||||||||||||||||||||||||||||
Initialize matrix column from scalars | ||||||||||||||||||||||||||||||
Signature | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
Arguments | ||||||||||||||||||||||||||||||
|
Method initColumnMajor | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Initialize matrix (args are in column major (OpenGL) order, convert to matrix order as required) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 initFrustum | |||
Signature | |||
|
Method initFrustumFov | |||
(field of view is in degrees) | |||
Signature | |||
|
Method initFrustumFovXY | ||||||||||||||||||||||||||||||||||||||||||||||||||
(field of view is in degrees) | ||||||||||||||||||||||||||||||||||||||||||||||||||
Signature | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||
Arguments | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
Method initIdentity | |||
Initialize with identity matrix. | |||
Signature | |||
|
Method initLookAt | |||
Init look-at matrix | |||
Signature | |||
|
Method initOrtho | |||
Signature | |||
|
Method initPerspective | |||
Init perspective matrix | |||
Signature | |||
|
Method initRotate | |||
Init rotation matrix (rotate about axis vector) | |||
Signature | |||
|
Method initRotatef | |||
Init X=>Y=>Z rotation matrix (initEulerXYZ()) | |||
Signature | |||
|
Method initRotatev | |||
Init v.x=>v.y=>v.z rotation matrix (initEulerXYZ()) | |||
Signature | |||
|
Method initRowf | ||||||||||||||||||||||||||||||
Initialize matrix row from scalars | ||||||||||||||||||||||||||||||
Signature | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
Arguments | ||||||||||||||||||||||||||||||
|
Method initRowMajor | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Initialize matrix (args are in row major order, convert to matrix order as required) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 initTranspose | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Initialize matrix (flip row/column major order, default is row-major) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 lookAt | |
Multiply by look-at matrix | |
Signature | |
Arguments | |
Method mul | |||||
Multiply this instance with matrix m (this * m) | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method mulf | |||||
Multiply this instance with scalar value s | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method mulRev | |||||
Reverse-multiply matrix m by this instance (m * this) | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method mulv | ||||
Multiply this instance with a 4dim vector | ||||
Signature | ||||
Arguments | ||||
| ||||
Returns | ||||
|
Method mulvRev | ||||
Multiply this transposed instance with a 4dim vector | ||||
Signature | ||||
Arguments | ||||
| ||||
Returns | ||||
|
Method New | ||||
Initialize from an array and return new instance of Matrix4f | ||||
Signature | ||||
Arguments | ||||
| ||||
Returns | ||||
|
Method ortho | |||||||||||||||||||||||||||||||||||
Multiply by orthogonal matrix | |||||||||||||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||||||||||||
|
Method perspective | |||||||||||||||||||||||||
Multiply by perspective matrix | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
|
Method rotate | |||||||||||||||
Multiply by rotation matrix | |||||||||||||||
Signature | |||||||||||||||
| |||||||||||||||
Arguments | |||||||||||||||
|
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 set | ||||||||||||||||||||
Set element at (row, column) to v | ||||||||||||||||||||
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 c 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 setJ | |||||
Set j element to v | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method setK | |||||
Set k element to v | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method setL | |||||
Set l element to v | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method setM | |||||
Set m element to v | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method setN | |||||
Set n element to v | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method setO | |||||
Set o element to v | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method setP | |||||
Set p element to 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 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 with Hilbert-Schmidt norm and scale by v afterwards | |||||
Signature | |||||
| |||||
Arguments | |||||
|
auto-generated by "DOG", the TkScript document generator. Thu, 11/Dec/2025 13:42:00