overlaps method

bool overlaps(
  1. Vector2Rect vector
)

Whether other has a nonzero area of overlap with this rectangle.

Implementation

bool overlaps(Vector2Rect vector) {
  return this.rect.overlaps(vector.rect);
}