Contents

NSIntersectsRect(_:_:)

Returns a Boolean value that indicates whether two rectangles intersect.

Declaration

func NSIntersectsRect(_ aRect: NSRect, _ bRect: NSRect) -> Bool

Return Value

true if aRect intersects bRect, otherwise false. Returns false if either aRect or bRect has a width or height that is 0.

See Also

Managing Rectangles