Originally Posted by

**Zirok** Hey sorry dear,

I apologize for the harsh & abrupt words used.

Please help me out -

** I will tell you the problem in detail -**

Points A,B,C,D are entered by the user. A great possibility is that wrong points can be inputted by the user. For example, Point A position in Point B's Dialog Box & Point B into Point A's Dialog Box.

So, the trick i am doing is to calculate the intersection point & than from that point calculate d1,d2....

d1 = distance from Intersection point ( IP ) to Point A

d2 = ------------------------------------to Point B

d3 = -------------------------------------to Point C

d4 = -------------------------------------to Point D

Than, the logic is that Point A & C ( i mean actual positions of Points )should always be closer to Intersection Point & Point B & D should always be far.

So even if the user enters the positions to & fro, the calculation will not fumble.

But as the distance calculted (d2) is in opposite direction, it doesnt gets swapped ( interchanged ) & NEED SOME HINT/CLUE that the Point is on Negative Side so i can take action accordingly.

I hope I was not to confusing.

Thanks & Sorry

Zirok