The cross product operation (×) calculates the signed area of the parallelogram formed by a vec2 pair.
The sign gives the rotation direction from the first vec2 to the second: positive for clockwise, negative for counterclockwise, and 0 when both are parallel, as drawn in the viewport.
Interface
Inputs
| Parameter | Details | Possible Types |
|---|---|---|
| Value | The vec2 on the left-hand side of the cross product operation. Primary Input | Vec2[]Vec2 |
| Other Value | The vec2 on the right-hand side of the cross product operation. Default: | Vec2[]Vec2 |
Outputs
| Product | Details | Possible Types |
|---|---|---|
| Result | The value produced by the node operation. Primary Output | f64f64[] |