Community ProtoFlux Library/AmasterAmaster/Math/Matrix/Set Matrix Element

From Resonite Wiki
This is a custom ProtoFlux node maintained by AmasterAmaster. Contact the creator of the node (not the Dev Team) with any bugs or issues.
This node was created using an in-game system and has no correlation to the Plugin system. Currently, these types of custom nodes are not officially supported by Resonite.
Set Matrix Element
*
Next
Matrix
NewMatrix
Value
Row
Column
Amaster's Math Library
Set Matrix Element
*
Next
Matrix
NewMatrix
Value
Row
Column
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.