DocsNodesVectors

Vector Math

Arithmetic on directions and positions, the way Math works on numbers.

vector add, cross product, normalize, project, reflect, vector arithmetic
Category
Vectors
Outputs
vector
Runs live in
no target yet

Add two positions, scale a direction, or take the cross product to get an axis perpendicular to two others. Normalize strips a direction down to length 1, which is what you want before using it as a direction rather than a distance.

It answers with a vector. When what you want is a single number out of two vectors, such as an angle or a distance, use Vector Measure.

Inputs

SocketTypeWiring
avectorone wire covers ax, ay, az
bvectorone wire covers bx, by, bz

Parameters

NameTypeDefaultAvailable whenWhat it does
Opadd | subtract | multiply | divide | cross | project | reflect | normalize | minimum | maximumaddalways
Xnumber0always
Ynumber0always
Znumber0always
Xnumber0always
Ynumber0always
Znumber0always

Built with this node

Nothing in the manual is built around this node yet.

See also

  • vectorMeasureWhen the answer should be a number rather than a vector.
  • mathThe same idea for plain numbers.

Open the editor and try it