ComfyUI Node
2D Vector Decompose (typed numbers, not CFG)
Computes magnitude, angle, unit direction, scale, projection onto an axis and residual of a 2-D vector typed as JSON. It reads no guidance tensor and is not connected to CFG.
2D Vector Decompose (typed numbers, not CFG)
- magnitude
- angle
- direction
- scale
- projection
- residual
- composite
◄vec_json[1.0, 0.0]►
◄axis_json[1.0, 0.0]►
◄reference1.000►
◄scale_mode▾►
CategoryParametric/Sampling
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| vec_json | STRING | [1.0, 0.0] | Vec json. Default [1.0, 0.0]. |
| axis_json | STRING | [1.0, 0.0] | Axis json. Default [1.0, 0.0]. |
| reference | FLOAT | 1.0000–1000000000 | Reference. From 0 to 1e+09. Default 1.0. |
| scale_mode | COMBO | Scale mode. One of 3 choices. |
Outputs (7)
| Name | Type | Description |
|---|---|---|
| magnitude | FLOAT | — |
| angle | FLOAT | — |
| direction | STRING | — |
| scale | FLOAT | — |
| projection | FLOAT | — |
| residual | STRING | — |
| composite | STRING | — |