contains method

bool contains(
  1. Geom other
)

Implementation

bool contains(Geom other) {
  return switch (other) {
    Point() => containsPoint(other),
    Rect() => containsRect(other),
    _ => false,
  };
}