Constructor
new Matrix33(values)
Name | Type | Description |
---|---|---|
values | Array.<number> | Row-major ordered 9 values. |
- Source
Classes
Methods
asOneAndZeros() → {Matrix33}
Get this matrix with only zero and +/- ones instead of the maximum.
- Source
The simplified matrix.
- Type:
- Matrix33
equals(rhs, popt) → {boolean}
Check for Matrix33 equality.
Name | Type | Attributes | Description |
---|---|---|---|
rhs | Matrix33 | The other matrix to compare to. | |
p | number | <optional> | A numeric expression for the precision to use in check (ex: 0.001). Defaults to Number.EPSILON if not provided. |
- Source
True if both matrices are equal.
- Type:
- boolean
get(row, col) → {number|undefined}
Get a value of the matrix.
Name | Type | Description |
---|---|---|
row | number | The row at wich to get the value. |
col | number | The column at wich to get the value. |
- Source
The value at the position.
- Type:
- number |
undefined
getAbs() → {Matrix33}
Get the absolute value of this matrix.
- Source
The result matrix.
- Type:
- Matrix33
getColAbsMax(col) → {object}
Get the index of the maximum in absolute value of a column.
Name | Type | Description |
---|---|---|
col | number | The column to get the maximum from. |
- Source
The {value,index} of the maximum.
- Type:
- object
getInverse() → {Matrix33|undefined}
Get the inverse of this matrix.
- Source
The inverse matrix or undefined if the determinant is zero.
- Type:
- Matrix33 |
undefined
getRowAbsMax(row) → {object}
Get the index of the maximum in absolute value of a row.
Name | Type | Description |
---|---|---|
row | number | The row to get the maximum from. |
- Source
The {value,index} of the maximum.
- Type:
- object
getThirdColMajorDirection() → {number}
Get the third column direction index of an orientation matrix.
- Source
The index of the absolute maximum of the last column.
- Type:
- number
multiply(rhs) → {Matrix33}
Multiply this matrix by another.
Name | Type | Description |
---|---|---|
rhs | Matrix33 | The matrix to multiply by. |
- Source
The product matrix.
- Type:
- Matrix33
multiplyArray3D(array3D) → {Array.<number>}
Multiply this matrix by a 3D array.
Name | Type | Description |
---|---|---|
array3D | Array.<number> | The input 3D array. |
- Source
The result 3D array.
- Type:
- Array.<number>
multiplyIndex3D(index3D) → {Index}
Multiply this matrix by a 3D index.
Name | Type | Description |
---|---|---|
index3D | Index | The input 3D index. |
- Source
The result 3D index.
- Type:
- Index
multiplyPoint3D(point3D) → {Point3D}
Multiply this matrix by a 3D point.
Name | Type | Description |
---|---|---|
point3D | Point3D | The input 3D point. |
- Source
The result 3D point.
- Type:
- Point3D
multiplyVector3D(vector3D) → {Vector3D}
Multiply this matrix by a 3D vector.
Name | Type | Description |
---|---|---|
vector3D | Vector3D | The input 3D vector. |
- Source
The result 3D vector.
- Type:
- Vector3D
toString() → {string}
Get a string representation of the Matrix33.
- Source
The matrix as a string.
- Type:
- string