Whether this line segment is horizontal (same y for both endpoints)
bool get isHorizontal => a.y == b.y;