Re: -[NSBezierPath containsPoint:] (again)
Re: -[NSBezierPath containsPoint:] (again)
- Subject: Re: -[NSBezierPath containsPoint:] (again)
- From: j o a r <email@hidden>
- Date: Thu, 4 Oct 2001 16:35:19 +0200
On Thursday, October 4, 2001, at 10:58 , Simon Stapleton wrote:
I was looking for some hit detection stuff for my object modeller
project[1] last night, and I'd kind of misread what 'containsPoint'
should do. I was looking for something that would detect whether a
point was _on_ a path, and it appears that containsPoint detects
points _bounded by_ a path. The docs are a little unclear on this
matter, I think, but I'll let that pass.
I was also looking for a hitPath (or hitCurveSegment really) method,
rather then containsPoint - so I also wrote a method of my own to do
that. Performance is immensly improved over using Apple's method - not
surprisingly, since mine is more specialized.
I share your opinion about the GnuStep method probably being buggy.
Regards,
j o a r