Vector Category¶
- The following list shows the Vector Category Magma nodes available in Krakatoa MX 2.x.
- These nodes implement various Vector-related operations.
ComponentSum¶
- The ComponentSum operator has one input and one output.
Input 1: Vector
- The input must be a Vector and has no default value when unconnected.
Output 1: Boolean
- The output is the sum of the input Vector’s components.
Magnitude¶
- The Magnitude operator has one input and one output.
Input 1: Vector
- The input must be a Vector and has no default value when unconnected.
Output 1: Boolean
- The output is a Float value representing the length (magnitude) of the input Vector.
MatrixMulVec¶
- The MatrixMulVec operator has four inputs and one output.
Input 1: Vector
- The first input is the Vector and defaults to 0,0,0 when unconnected.
Input 2: Vector
Input 3: Vector
Input 4: Vector
- The second, third and fourth inputs are the columns of the Matrix and default to [1,0,0], [0,1,0] and [0,0,1] when unconnected.
Output 1: Boolean
- The output is a Vector representing the matrix multiplied by the first input’s vector.
Normalize¶
- The Normalize operator has one input and one output.
Input 1: Vector
- The input must be a Vector and has no default value when unconnected.
Output 1: Boolean
- The output is the normalized (lenght 1.0) vector with the same direction as the input.
VectorCross¶
- The VectorCross operator has two inputs and one output.
Input 1: Vector
- The two inputs must be Vector values and have no default values when unconnected.
Output 1: Boolean
- The output is the vector cross product of the two inputs - a vector perpendicular to the two vectors and with length equal to the area of the parallelogram defined by the two vectors.
VectorDot¶
- The VectorDot operator has two inputs and one output.
Input 1: Vector
Input 2: Vector
- The two inputs must be Vectors and have no default values when unconnected.
- NOTE that the VectorDot result only makes sense when the two inputs have unit length!
- No implicit input Vector normalization will be perfomed, be sure to apply Normalize operators to the Vectors before using as Inputs.
Output 1: Boolean
- The output is a Float representing the length of the projection of the one vector onto the other.