On Apr 2, 2008, at 04:00, Ghufran Ahamad wrote:
NSAffineTransform* xform = [NSAffineTransform transform]; [currentContext saveGraphicsState]; [NSBezierPath clipRect:drawingBounds]; NSPoint center = NSMakePoint(NSMidX(stRect), NSMidY(stRect)); [xform translateXBy:center.x yBy:center.y]; [xform rotateByDegrees:[curGraphic GetAngle]]; [xform translateXBy:-center.x yBy:-center.y]; [xform concat];
This looks kind of wrong. Mathematically, wouldn't you want: [xform translateXBy:-center.x yBy:-center.y]; [xform rotateByDegrees:[curGraphic GetAngle]]; [xform translateXBy:center.x yBy:center.y]; ? _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]