| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On Mar 11, 2008, at 11:55 PM, Luigi Castelli wrote: Hi all, Track the mouse in a mouseMoved handler and at each mouse position use CGPathContainsPoint to determine if the mouse is in a particular cell. If that's not sufficient, you could use bressenham's algorithm or even simple interpolation to calculate intermediate points on a line and check whether they are in the path(s). If you know how big your cells are you simply have to sample at half that distance to feel confident that you hit everything you might have hit. Scott |
_______________________________________________ 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
| References: | |
| >Hit testing between line and path (From: Luigi Castelli <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.