Multiply Vector
Scales a vector by a number.
Node id vector/multiply
The Multiply Vector node outputs vector with both components multiplied
by scalar: (3, 4) times 2 is (6, 8).
Inputs
| Name | Type | Default | Notes |
|---|---|---|---|
| vector | Vec2 | { x: 0, y: 0 } | |
| scalar | number | 1 |
Outputs
| Name | Type | Notes |
|---|---|---|
| vector | Vec2 |
Behaviour
- Defaults.
vectordefaults to (0, 0) andscalarto 1. - Length. The result is
scalartimes as long. A negativescalaralso reverses the direction. - Setting a length. Multiply a length-1 vector (from Normalize or Vector From Angle) by the length you want.