Calculates the angle between two points.
double angleBetween(Point from, Point to) { return math.atan2(to.y - from.y, to.x - from.x); }