Next: , Previous: Rectangle-rectangle functions, Up: Rectangle


1.138.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


hash
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