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
| Socket | Type | Wiring |
|---|---|---|
| a | vector | one wire covers ax, ay, az |
| b | vector | one wire covers bx, by, bz |
Parameters
| Name | Type | Default | Available when | What it does |
|---|---|---|---|---|
| Op | add | subtract | multiply | divide | cross | project | reflect | normalize | minimum | maximum | add | always | |
| X | number | 0 | always | |
| Y | number | 0 | always | |
| Z | number | 0 | always | |
| X | number | 0 | always | |
| Y | number | 0 | always | |
| Z | number | 0 | always |
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.