Login  Register

Re: Perpendicular line selection

Posted by Gabriel Landini on Feb 02, 2009; 12:46pm
URL: http://imagej.273.s1.nabble.com/Perpendicular-line-selection-tp3693873p3693876.html

On Monday 02 February 2009 00:32:02 Justin McGrath wrote:
> This will make the line a right angle, but the second segment will be
> variable in length.
>
>    xa[xa.length-1]=xa[xa.length-1]+15*(1/(dx/d)); // Here you had the
> sign reversed and dy instead of dx
>    ya[xa.length-1]=ya[xa.length-1]+15*(-1/(dy/d));

That is great, thank you. I will see if I can get the length fixed.
Thanks to Jerome too for the alternative method.
Regards

Gabriel