Skip to content

Vector Math

Vector Math
Result Float1
Result
Mode
X
Y
Z
S

Category Numbers
Is Pair Node: No


Performs mathematical operations on vectors and scalars.

ModeXYZSOutput
AddVector
SubtractVector
MultiplyVector
DivideVector
Multiply AddVector
DotScalar
CrossScalar
DistanceScalar
LengthScalar
ScaleVector
NormalizeVector
AbsoluteVector
PowerVector
SignVector
MinVector
MaxVector
RoundVector
FloorVector
CeilVector
FractionVector
ModuloVector
WrapVector
SnapVector
SinVector
CosVector
TanVector
NegateVector

Adds two vectors component-wise.

Subtracts the second vector from the first vector component-wise.

Multiplies two vectors component-wise.

Divides the first vector by the second vector component-wise.

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.

Calculates the distance between two vectors.

Returns the magnitude of a vector.

Multiplies a vector by a scalar value.

Converts a vector into a unit vector with a length of 1.

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.

Returns only the fractional part of each vector component.

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.

Returns the inverse of each component by multiplying it by -1.


Type: VectorMathMode
Default: unset

Selects the vector operation to perform.

Type: VecD
Default: unset

First vector input used by the selected operation.

Type: VecD
Default: unset

Second vector input used by binary operations.

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.


Type: Double
Default: unset

Scalar result produced by operations such as Dot, Length, or Distance.

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.