Next: 2 Adding a Window Up: 1 Points, Sizes and Previous: 1.3 NSRect

1.4 Geometry Functions

The GNUstep base library provides functions and macros to do all the most common geometry operations on NSPoints, NSSizes and NSRects (such as determining if a point is contained in a rectangle, computing the intersection of two rectangles, etc). It would be off topic to discuss them here; please refer to the base library documentation whenever you need to do some of these common geometrical operations.