Cross Product

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

ParameterDetailsPossible 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: 1., 0

Vec2[]
Vec2

Outputs

ProductDetailsPossible Types
Result

The value produced by the node operation.

Primary Output

f64
f64[]