• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: -[NSBezierPath containsPoint:] was Re: cocoa-dev digest, Vol 1 #651 - 14 msgs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: -[NSBezierPath containsPoint:] was Re: cocoa-dev digest, Vol 1 #651 - 14 msgs
      • From: Simon Stapleton <email@hidden>
References: 
 >Re: cocoa-dev digest, Vol 1 #651 - 14 msgs (From: Simon Stapleton <email@hidden>)

  • Prev by Date: Re: NSScrollView and general IB annoyance
  • Next by Date: capturing the information of the application being mouse clicked
  • Previous by thread: Re: cocoa-dev digest, Vol 1 #651 - 14 msgs
  • Next by thread: Re: -[NSBezierPath containsPoint:] was Re: cocoa-dev digest, Vol 1 #651 - 14 msgs
  • Index(es):
    • Date
    • Thread