intersectsRectangle method

bool intersectsRectangle(
  1. PRectangle r
)

Returns true if r intersects this rectangle.

Implementation

bool intersectsRectangle(PRectangle r) =>
    intersects(r.x, r.y, r.width, r.height);