Geometry functions for Cocoa and Cocoa Touch