Angle Between

Calculates the angle swept between two vec2s.

The angle ranges from -180° to 180° (or -π to π radians) and its sign gives the sweep direction from the "Direction From" input to the "Direction To" input: positive for clockwise, negative for counterclockwise, as drawn in the viewport and matching the direction convention of the Transform node's rotation.

Interface

Inputs

ParameterDetailsPossible Types
Direction From

The direction the angle is measured from.

Primary Input

Vec2[]
Vec2
Direction To

The direction the angle is measured to.

Default: 1., 0

Vec2[]
Vec2
Radians

Whether the resulting angle should be given in radians instead of degrees.

Default: false

bool[]
bool

Outputs

ProductDetailsPossible Types
Result

The value produced by the node operation.

Primary Output

f64
f64[]