Okay, I now know what you mean by knowing the corner. Here is what I notice: you have points along the path as follows: 2,5 2,6 2,7 2,8 2,9 3,9 4,9. If you treat these as ordered data points, then 2,8 (as you say) is the midpoint. What if you had as originally, 2,4 2,5 2,6 2,7 2,8 2,9 3,9 4,9. If you treat these as ordered data points, a midpoint would fall between 2,7 and 2,8. What would you consider to be the midpoint in this case?
Quoting Lara <email@example.com>:
> thanks Ed Wall, > > Yes, there is more than one orthogonal path between these points.. > > But , If I know the co-ordinate of the corner I think we will know the path.. > > In my example,I have the the co-ordinate of the two points (2,5) and > (4,9). Also, I have the co-ordinate of the corner (2,9). > Therefore, the path will become from (2,5) to (2,9) then from (2,9) > to (4,9),i.e 2,5 2,6 2,7 2,8 2,9 3,9 4,9 > the midpoint between (2,5) and (4,9) is (2,8) > How can calculate it ?? > > Thanks, > > Lara > > >