• 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
CGPoint and CGRect
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CGPoint and CGRect


  • Subject: CGPoint and CGRect
  • From: DKJ <email@hidden>
  • Date: Fri, 21 Nov 2008 15:19:47 -0800

I want to determine whether a line between two CGPoints in a view intersects with a given CGRect. There's nothing in the CGGeometry reference that does this specifically, and I don't yet see how to use the functions that are there to figure this out.

Before I dust off my Euclid (a rare first edition), has anyone got a quick solution? It seems the sort of thing that would be handy in many situations.

dkj
_______________________________________________

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


  • Follow-Ups:
    • Re: CGPoint and CGRect
      • From: Greg Titus <email@hidden>
  • Prev by Date: Re: Blue default button style hangs. (THREADED DRAWS!)
  • Next by Date: Re: CGPoint and CGRect
  • Previous by thread: Re: NSCollectionView woes
  • Next by thread: Re: CGPoint and CGRect
  • Index(es):
    • Date
    • Thread