Crying Over CoreAnimation Center Rotation Math
Crying Over CoreAnimation Center Rotation Math
- Subject: Crying Over CoreAnimation Center Rotation Math
- From: Chilton Webb <email@hidden>
- Date: Wed, 09 Jul 2008 20:04:41 -0700
Hi,
I have an NSView subclass. I rotated it with -setFrameCenterRotation, and that works just fine.
But now I want to scale it down 50%. If I use NSInsetRect() to shrink it, it flies off in a random direction.
Worse, if I set another view to that view, or use the frame of the rotated view for checking intersection with another rectangle, it's always somewhere weird.
I get it though, I realize that this is the same as rotating off the 0,0 corner. So how do I correctly establish the boundaries of the rotated object?
Thank you,
-Chilton Webb
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden