Action Data
Vector Math
Performs mathematical operations on 2D or 3D vectors including addition, dot product, cross product, projection, and more.
Node IDVectorMathAction
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
Dimension dimension | enum | Yes | 3D | Whether to work with 2D (x, y) or 3D (x, y, z) vectors. |
Operation operation | enum | Yes | Add | The vector operation to perform. Cross product only available in 3D mode. |
Vector A vectorA | vector | Yes | [0,0,0] | First vector as array [x, y] for 2D or [x, y, z] for 3D. |
Vector B vectorB | vector | No | [0,0,0] | Second vector (for two-vector operations like Add, Dot, Cross, etc.). |
Scalar scalar | float | No | 1 | Scalar value (only used for Scale operation). |
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
Execute input0 | object | Yes | Triggers the vector operation. |
Outputs
| Output | Type | Identifier | Description |
|---|---|---|---|
Result output0 | object | vector_result | The result of the vector operation. Can be a vector (array) or scalar (number) depending on the operation. |