angleToSigned method

double angleToSigned(
  1. Vector2 other
)
inherited

Returns the signed angle between this and other in radians.

Implementation

double angleToSigned(Vector2 other) {
  if (this == other) {
    return 0;
  }

  final sine = cross(other);
  final cosine = dot(other);
  return math.atan2(sine, cosine);
}