Class FlowGraphMatrix3D
Implements
Constructors
constructor
-
Parameters
- array: number[] = ...
Returns FlowGraphMatrix3D
Methods
add
-
Adds another matrix to this matrix.
Parameters
- other: FlowGraphMatrix3D
The matrix to add.
Returns FlowGraphMatrix3D
The result matrix.
- other: FlowGraphMatrix3D
add To Ref
-
Adds another matrix to this matrix and stores the result in a reference matrix.
Parameters
- other: FlowGraphMatrix3D
The matrix to add.
- result: FlowGraphMatrix3D
The matrix to store the result.
Returns FlowGraphMatrix3D
The result matrix.
- other: FlowGraphMatrix3D
as Array
-
Returns the matrix elements as an array.
Returns number[]
The matrix elements as an array.
determinant
-
Computes the determinant of this matrix.
Returns number
The determinant of the matrix.
divide
-
Divides this matrix by another matrix.
Parameters
- other: FlowGraphMatrix3D
The matrix to divide by.
Returns FlowGraphMatrix3D
The result matrix.
- other: FlowGraphMatrix3D
divide To Ref
-
Divides this matrix by another matrix and stores the result in a reference matrix.
Parameters
- other: FlowGraphMatrix3D
The matrix to divide by.
- result: FlowGraphMatrix3D
The matrix to store the result.
Returns FlowGraphMatrix3D
The result matrix.
- other: FlowGraphMatrix3D
equals
-
Checks if this matrix is equal to another matrix within an optional epsilon.
Parameters
- other: IFlowGraphMatrix<Vector3>
The matrix to compare with.
- epsilon: number = 0
The optional epsilon for comparison.
Returns boolean
True if the matrices are equal, false otherwise.
- other: IFlowGraphMatrix<Vector3>
from Array
-
Sets the matrix elements from an array.
Parameters
- array: number[]
The array containing the matrix elements.
Returns FlowGraphMatrix3D
The updated matrix.
- array: number[]
get Class Name
-
Gets the class name of this matrix.
Returns string
The class name.
inverse
multiply
-
Multiplies this matrix with another matrix. To staz conform with the Matrix class, this does B * A
Parameters
- other: FlowGraphMatrix3D
The matrix to multiply with.
Returns FlowGraphMatrix3D
The result matrix.
- other: FlowGraphMatrix3D
multiply To Ref
-
Multiplies this matrix with another matrix and stores the result in a reference matrix.
Parameters
- other: FlowGraphMatrix3D
The matrix to multiply with.
- result: FlowGraphMatrix3D
The matrix to store the result.
Returns FlowGraphMatrix3D
The result matrix.
- other: FlowGraphMatrix3D
subtract
-
Subtracts another matrix from this matrix.
Parameters
- other: FlowGraphMatrix3D
The matrix to subtract.
Returns FlowGraphMatrix3D
The result matrix.
- other: FlowGraphMatrix3D
subtract To Ref
-
Subtracts another matrix from this matrix and stores the result in a reference matrix.
Parameters
- other: FlowGraphMatrix3D
The matrix to subtract.
- result: FlowGraphMatrix3D
The matrix to store the result.
Returns FlowGraphMatrix3D
The result matrix.
- other: FlowGraphMatrix3D
to Array
-
Copies the matrix elements to an array.
Parameters
- emptyArray: number[] = []
The array to copy the elements to.
Returns number[]
The array with the matrix elements.
- emptyArray: number[] = []
to String
-
Returns a string representation of an object.
Returns string
transform Vector
-
Transforms a vector using this matrix.
Parameters
- v: Vector3
The vector to transform.
Returns Vector3
The transformed vector.
- v: Vector3
transform Vector To Ref
-
Transforms a vector using this matrix and stores the result in a reference vector.
Parameters
- v: Vector3
The vector to transform.
- result: Vector3
The vector to store the result.
Returns Vector3
The transformed vector.
- v: Vector3
A 3x3 matrix, stored in column-major order.
BREAKING: this class was row-major in earlier releases — see IFlowGraphMatrix for the full behaviour change (flat-array construction, transform, and multiply operand order).