Checks if three points are collinear.
bool areCollinear(Point a, Point b, Point c, {double tolerance = 1e-10}) { return ((b - a).cross(c - a)).abs() < tolerance; }