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