Re: -[NSBezierPath containsPoint:] was Re: cocoa-dev digest, Vol 1 #651 - 14 msgs
Re: -[NSBezierPath containsPoint:] was Re: cocoa-dev digest, Vol 1 #651 - 14 msgs
- Subject: Re: -[NSBezierPath containsPoint:] was Re: cocoa-dev digest, Vol 1 #651 - 14 msgs
- From: John Hörnkvist <email@hidden>
- Date: Mon, 1 Oct 2001 14:05:08 +0200
On Monday, October 1, 2001, at 11:02 AM, Simon Stapleton wrote:
It flattens the path, and that means replacing any curve segment by
a
lot of short lines.
That sounds like a rather suboptimal way of carrying on, although
testing if a point is on a line segment is rather easier than
detecting if one's on a bezier. I would have thought the extra
allocs and deallocs involved would remove the benefit, myself, but if
anyone on the apple team responsible cares to tell me otherwise...
Suboptimal with respect to performance, but pretty good for implementing
the method with little use of man power.
Analytical solutions should perform a lot better.
Regards,
John Hvrnkvist
--
ToastedMarshmallow, the perfect Cocoa companion
http://www.toastedmarshmallow.com