Vector2Angle function

double Vector2Angle(
  1. Vector2 v1,
  2. Vector2 v2
)

Signed angle from v1 to v2 in radians.

Implementation

double Vector2Angle(Vector2 v1, Vector2 v2) =>
    math.atan2(v1.x * v2.y - v1.y * v2.x, v1.x * v2.x + v1.y * v2.y);