Next: , Previous: , Up: Rectangle   [Index]

1.142.6 Rectangle: testing

= aRectangle

Answer whether the receiver is equal to aRectangle

contains: aRectangle

Answer true if the receiver contains (see containsPoint:) both aRectangle’s origin and aRectangle’s corner

containsPoint: aPoint

Answer true if aPoint is equal to, or below and to the right of, the receiver’s origin; and aPoint is above and to the left of the receiver’s corner


Answer an hash value for the receiver

intersects: aRectangle

Answer true if the receiver intersect aRectangle, i.e. if it contains (see containsPoint:) any of aRectangle corners or if aRectangle contains the receiver