Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Hit testing between line and path



Hi all,

I have a 16x16 matrix made by rectangular CGPaths.
The exact shape of the paths is actually a rounded rectangle.
All the CGPaths in the matrix are NOT adjacent to each other.
In other words there is some space between the paths - or cells of the matrix.

Now I want to implement 2D interpolation when the user drags on the matrix in an attempt to select its cells.
This would have the effect that even during fast drags the cells over which the mouse has passed will be selected.

So, if a line is drawn on top of the matrix how would I know which paths (cells) it intersected ?

What would be the best strategy to tackle such a problem ?

Any advice or suggestion is highly appreciated.

Thank you.

- Luigi


 
------------------------------------------------------------
 THIS E-MAIL MESSAGE IS FOR THE SOLE USE OF THE INTENDED RECIPIENT AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED INFORMATION.  ANY UNAUTHORIZED REVIEW, USE, DISCLOSURE OR DISTRIBUTION IS PROHIBITED.  IF YOU ARE NOT THE INTENDED RECIPIENT, CONTACT THE SENDER BY E-MAIL AT email@hidden AND DESTROY ALL COPIES OF THE ORIGINAL MESSAGE. WITHOUT PREJUDICE UCC 1-207.
 ------------------------------------------------------------





      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartz-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.