Vector Math
Vector Math
Section titled “Vector Math” Category Numbers
Is Pair Node: No
Performs mathematical operations on vectors and scalars.
Vector Math Mode
Section titled “Vector Math Mode”| Mode | X | Y | Z | S | Output |
|---|---|---|---|---|---|
| Add | ✅ | ✅ | Vector | ||
| Subtract | ✅ | ✅ | Vector | ||
| Multiply | ✅ | ✅ | Vector | ||
| Divide | ✅ | ✅ | Vector | ||
| Multiply Add | ✅ | ✅ | ✅ | Vector | |
| Dot | ✅ | ✅ | Scalar | ||
| Cross | ✅ | ✅ | Scalar | ||
| Distance | ✅ | ✅ | Scalar | ||
| Length | ✅ | Scalar | |||
| Scale | ✅ | ✅ | Vector | ||
| Normalize | ✅ | Vector | |||
| Absolute | ✅ | Vector | |||
| Power | ✅ | ✅ | Vector | ||
| Sign | ✅ | Vector | |||
| Min | ✅ | ✅ | Vector | ||
| Max | ✅ | ✅ | Vector | ||
| Round | ✅ | Vector | |||
| Floor | ✅ | Vector | |||
| Ceil | ✅ | Vector | |||
| Fraction | ✅ | Vector | |||
| Modulo | ✅ | ✅ | Vector | ||
| Wrap | ✅ | ✅ | ✅ | Vector | |
| Snap | ✅ | ✅ | Vector | ||
| Sin | ✅ | Vector | |||
| Cos | ✅ | Vector | |||
| Tan | ✅ | Vector | |||
| Negate | ✅ | Vector |
Adds two vectors component-wise.
Subtract
Section titled “Subtract”Subtracts the second vector from the first vector component-wise.
Multiply
Section titled “Multiply”Multiplies two vectors component-wise.
Divide
Section titled “Divide”Divides the first vector by the second vector component-wise.
Multiply Add
Section titled “Multiply Add”Multiplies two vectors component-wise and then adds the third vector:
X * Y + Z.
Calculates the dot product of two vectors, producing a scalar value.
Calculates the cross product of two vectors, producing a perpendicular vector.
Distance
Section titled “Distance”Calculates the distance between two vectors.
Length
Section titled “Length”Returns the magnitude of a vector.
Multiplies a vector by a scalar value.
Normalize
Section titled “Normalize”Converts a vector into a unit vector with a length of 1.
Absolute
Section titled “Absolute”Returns the absolute value of each vector component.
Raises each component of the first vector to the power of the corresponding component of the second vector.
Returns the sign of each component:
-1 for negative values, 0 for zero, and 1 for positive values.
Returns the minimum value of each component between two vectors.
Returns the maximum value of each component between two vectors.
Rounds each vector component to the nearest integer.
Rounds each vector component down to the nearest integer.
Rounds each vector component up to the nearest integer.
Fraction
Section titled “Fraction”Returns only the fractional part of each vector component.
Modulo
Section titled “Modulo”Returns the remainder after dividing each component of the first vector by the corresponding component of the second vector.
Wraps vector components into a specified range.
X is the value, Y is the minimum range, and Z is the maximum range.
Snaps each vector component to the nearest lower multiple of the corresponding value in Y.
Calculates the sine of each vector component.
Calculates the cosine of each vector component.
Calculates the tangent of each vector component.
Negate
Section titled “Negate”Returns the inverse of each component by multiplying it by -1.
Inputs
Section titled “Inputs” Type: VectorMathMode
Default: unset
Selects the vector operation to perform.
Type: VecD
Default: unset
Third vector input used by operations requiring an additional vector.
Type: Double
Default: unset
Scalar value used by scalar operations such as Scale.
Outputs
Section titled “Outputs” Result Float1
Section titled “ Result Float1 ” Type: Double
Default: unset
Scalar result produced by operations such as Dot, Length, or Distance.
Result
Section titled “ Result ” Type: VecD
Default: unset
Vector result produced by vector operations.
All of our content is carefully written by hand, no AI was involved during the process.