Hi All;
I need something much special for me. I have lots of curves on my canvas so generally I can't locate target curve on the canvas, so I need tooltip for every curve when I placed my cursor as close as needed.
At first grasp, I found following solution;
-I will get the cursor's coordinate and dispatch this coordinate to each curve.
-These curves will start to calculate closest grade by binary search and line equations of 2 points.
-By kind of these calculations and finding operation I will get "closest rate" for each curve, then I will compare each rate and find most closest one.
-Then I will compare this closest rate with my threshold which can elect out of defined range.
-If threshold operation passes too, I can make decision that my curve is this most closest point's owner curve.
As you can see this bulk of operations for each curve is too complex and can make my system slow down.
So have you any much fast and reasonable way acvieve kind of this goal?
Thanks in advance.
Regards.
Ümit Uzun
Bookmarks