angleBetween method

double angleBetween(
  1. PositionComponent c
)

Implementation

double angleBetween(PositionComponent c) {
  return (atan2(c.x - x, y - c.y) - pi / 2) % (2 * pi);
}