kilon alios wrote:
would I sound too lazy to ask in which class ? yes. (but you usually are not lazy so you have some quota :) I can't answer directly since Stef's post is the first I know of it, but a few interesting things turn up when I try World > Tools > Finder searching for 'bezier' for * Classes * Selectors * Source cheers -ben On Sat, Nov 23, 2013 at 11:35 AM, Stéphane Ducasse < stephane.duca...@inria.fr> wrote:there are bezier algo in the system Stef On Nov 20, 2013, at 9:55 PM, kilon alios <kilon.al...@gmail.com> wrote: yes I found the formula for straight lines and I was wondering what was the one for bezier curves, so your reply could not have come a better moment. Thanks I will study it and implement it. On Wed, Nov 20, 2013 at 9:21 PM, Hilaire Fernandes < hilaire.fernan...@gmail.com> wrote:Hello, You may want to calculate the distance between the mouse position and your path (I guess a bezier curve). Then given this distance and a tolerance to zero you decide if the mouse position is more or less on your path. Calculating the distance you will also get for free the place where to add a point on your path. http://blog.gludion.com/2009/08/distance-to-quadratic-bezier-curve.html Hilaire Le 14/11/2013 21:07, kilon alios a écrit :In order to do that I will have to check that the line passes through a specific pixel. Or to be more correct that the place that mouse has clicked is where my path passes through. How I do that ? Can Athens do that ? Can athens tell me which pixels my path passes through ?-- Dr. Geo http://drgeo.eu |
- [Pharo-users] [Athens] Finding if a line passes through ... kilon alios
- Re: [Pharo-users] [Athens] Finding if a line passes... Dennis Schetinin
- Re: [Pharo-users] [Athens] Finding if a line passes... Hilaire Fernandes
- Re: [Pharo-users] [Athens] Finding if a line pa... kilon alios
- Re: [Pharo-users] [Athens] Finding if a lin... Stéphane Ducasse
- Re: [Pharo-users] [Athens] Finding if a... kilon alios
- Re: [Pharo-users] [Athens] Finding... btc
- Re: [Pharo-users] [Athens] Finding... kilon alios
- Re: [Pharo-users] [Athens] Fin... Igor Stasenko
- Re: [Pharo-users] [Athens] Fin... Stéphane Ducasse
- Re: [Pharo-users] [Athens]... kilon alios