Re: Inviting to comment on Cocoa categories
Re: Inviting to comment on Cocoa categories
- Subject: Re: Inviting to comment on Cocoa categories
- From: "Michael Ash" <email@hidden>
- Date: Sun, 9 Nov 2008 22:43:56 -0500
On Sun, Nov 9, 2008 at 9:55 PM, Kyle Sluder
<email@hidden> wrote:
> On Sun, Nov 9, 2008 at 1:47 PM, Tommy Nordgren <email@hidden> wrote:
>> +(NSAffineTransform *) transformRotatedAroundPoint:(NSPoint) p
>> degrees:(CGFloat) deg;
>
> Please be aware that rotation around a point other than the origin is
> not a linear transformation. This may be why such functionality was
> omitted from NSAffineTransform.
That's not so. Any affine transform is a linear transformation, and
rotation around a point can certainly be represented as an affine
transform.
Most likely the reason why NSAffineTransform doesn't have this
functionality is because NSAffineTransform simply provides the basic
building blocks, and rotation about a point is actually a combination
of those basics.
Mike
_______________________________________________
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