Use the CGGeometry functions instead of direct access