+newReturns a new rectangle with origin and corner at (0,0).
+origin:pcorner:qReturns a new rectangle with origin and corner set to p and q.
+origin:pextent:q
+origin:(int)x1:(int)y1corner:(int)x2:(int)y2
+origin:(int)x:(int)yextent:(int)w:(int)h
-freeFrees the origin and corner of the Point too.
-origin:p
-corner:q
-origin:pcorner:qSets origin and corner to p and q.
-extent:(int)w:(int)h
-extent:q
-origin:(int)x1:(int)y1
-corner:(int)x1:(int)y1
- (BOOL)contains:aPointYes if inside, or on a border of, the rectangle.
- (unsigned)hash
- (BOOL)isEqual:aRectangleReturns YES if aRectangle is some kind of rectangle, and if corner and origin are equal.
- (int)left
- (int)right
- (int)top
- (int)bottom
- (int)width
- (int)height
-origin
-topLeftSame as origin.
-topRightAnswer the point at the top right corner of the receiver's top horizontal.
-topCenterAnswer the point at the center of the receiver's top horizontal.
-corner
-bottomLeftReturns the point at the left edge of the bottom horizontal line of the receiver(or bottomLeft for short).
-bottomCenterAnswer the point at the center of the receiver's bottom horizontal.
-bottomRightSame as corner.
-centerReturn the point at the center of the receiver.
-leftCenterReturn the point at the center of the receiver's left vertical line.
-rightCenterReturn the point at the center of the receiver's left vertical line.
-extentReturn a new Point, set to the width and height of the rectangle.
-quickMerge:rectReturn the receiver if it encloses the given rectangle or the merge of the two rectangles if it doesn't. This method is an optimization to reduce extra rectangle creations.
-moveBy:aPoint
-translateBy:pThis method is like moveBy:, but returns a new rectangle instead of modifying the receiver.
-align:p1with:p2Answer a rectangle that is translated by p2 - p1.
-printOn:(IOD)aFile