3dSynth

Docs / Node Sculptor

Open in the interactive docs reader

Vector Op

Vector arithmetic: add, subtract, multiply, divide, cross, dot, scale, normalize. The op parameter picks which operation runs; unused sockets are ignored.

Node

Interactive preview is available in the interactive reader.

Sockets

a, b (in)
Vector3 operands. Default [0, 0, 0].
s (in)
Float scalar — used by the scale op.
value (out)
Vector3 result (add / sub / mul / div / cross / scale / normalize).
scalar (out)
Float result — only filled by the dot op.

Parameters

Op
add (a+b), sub (a-b), mul (a·b component-wise), div (a÷b component-wise), scale (a·s), cross (a×b), dot (a·b → scalar), normalize (a / |a|). Default: add.

How It Works

Component-wise operations work per-axis. cross returns a vector perpendicular to both operands — useful for building rotation axes. dot returns a Float that measures alignment (0 = orthogonal, |a|·|b| = parallel). normalize rescales to unit length; if the input is zero, the result is the zero vector.

Divide-by-zero is guarded: a zero component in b leaves the corresponding axis of the output at 0 instead of Infinity.

Tips