Convert Category¶
- The following list shows the Convert Category Magma nodes available in Krakatoa MX 2.x.
- These nodes are used to convert values from one value type into anouther.
Breakout¶
- The Breakout operator has one input and three outputs.
Input 1: Value (Vector)
- The input can be a Vector, Float or Integer.
- It has no default value when unconnected.
Output 1: X (Float)
- The first Output represents the first component of the input value if it is a Vector.
- If the Input is a Float or Integer, the Output will pass through its values.
Output 2: Y (Float)
- The first Output represents the second component of the input value if it is a Vector.
- If the Input is a Float or Integer, the Output will have no value and will cause an error if connected.
Output 3: Z (Float)
- The third Output represents the third component of the input value if it is a Vector.
- If the Input is a Float or Integer, the Output will have no value and will cause an error if connected.
QuatToVectors¶
- The QuatToVectors operator has one input and three outputs.
Input 1: Value (Quat)
- The input must be a Quat
- It has no default value when unconnected.
Output 1: X Axis (Vector)
- The first output represent the orthonormal X axis of the Quaternion taken as a 3x3 Rotation matrix.
Output 2: Y Axis (Vector)
- The second output represent the orthonormal Y axis of the Quaternion taken as a 3x3 Rotation matrix.
Output 3: Z Axis (Vector)
- The third output represent the orthonormal Z axis of the Quaternion taken as a 3x3 Rotation matrix.
ToFloat¶
- The ToFloat operator has one input and one output.
Input 1: Scalar
- The input must be a Scalar (usually an Integer) and has no default value when unconnected.
Output 1: Float
- The output is the input converted to Float if the input is Integer, or the input itself if it is already a Float.
ToInt¶
- The ToInteger operator has one input and one output.
Input 1: Scalar
- The input must be a Scalar (usually a Float) and has no default value when unconnected.
Output 1: Integer
- The output is the input converted to an Integer if the input is Float, or the input itself passed through if it is already an Integer.
ToVector¶
- The ToVector operator has three inputs and one output.
Input 1: Float
Input 2: Float
Input 3: Float
- The three inputs must be Floats and have a default value of 0.0 when unconnected.
Output 1: Vector
- The output is a Vector value comprised of the three inputs as its components.
VectorsToQuat¶
- The VectorsToQuat operator has three inputs and one output.
Input 1: Vector
Input 2: Vector
Input 3: Vector
- The three Vector inputs define the X, Y and Z orthonormal axes of a 3x3 Rotation matrix
Output 1: Quat
- The output is the Quat value describing the oritnation of that matrix.
