Set Matrix Element
Amaster's Math Library
Set Matrix Element
Amaster's Math Library
The Set Matrix Element node takes in a matrix to modify, a value for that matrix element, the row, and column. Then this node will place that value in the spot where it needs to be (keeping in mind that matrices are 0-based indexed), then returns the new modified matrix.
There are two variants of this node, one for floats and one for doubles.
Inputs
* (Call)
Calls to start modifying the matrix.
Matrix (float4x4 or double4x4)
The matrix to modify.
Value (float or double)
The element or value to set with.
Row (int)
The target row for this matrix.
Column (int)
The target column for this matrix.
Outputs
Next (Continuation)
Continues the code from here.
NewMatrix (float4x4 or double4x4)
Returns the newly modified matrix.
See Also
- Wikipedia's definition of a matrix.