overlaps method
Whether other
has a nonzero area of overlap with this rectangle.
Implementation
bool overlaps(Vector2Rect vector) {
return this.rect.overlaps(vector.rect);
}
Whether other
has a nonzero area of overlap with this rectangle.
bool overlaps(Vector2Rect vector) {
return this.rect.overlaps(vector.rect);
}