intersectsWithVector2 method

bool intersectsWithVector2(
  1. Vector2 other
)

Return if this intersects with other.

Implementation

bool intersectsWithVector2(Vector2 other) =>
    (_min.x <= other.x) &&
    (_min.y <= other.y) &&
    (_max.x >= other.x) &&
    (_max.y >= other.y);