Not sure there is anything in the framework that will help
you.
Perhaps this link can help:
http://www.topcoder.com/tc?module=St... int_distance
That would cover point-to-line and by extension point to rectangle
(= 4 lines checked individually). Still need another algorithm to take
care of the circle, though.
/Joergen Bech
On 27 Oct 2006 04:15:51 -0700, "SP" <dario.zandolin (AT) gmail (DOT) com> wrote:
Quote:
Hi,
I've a Object model with line rectangle text and circle. I need to get
the nearest objcet to mouse click point to select and move the object.
I've used GraphicsPath.isVisible, but if I have a rectangle and a line
in it I can't get the line.
I need a function or algorithm to get the nearest object (based on its
coordinates) to this point.
ANy suggestion.
And to get more object Can i use GetRegionScans? |