How to know direction of point

  • Context: Undergrad 
  • Thread starter Thread starter Zirok
  • Start date Start date
  • Tags Tags
    Direction Point
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 2K views
Zirok
Messages
6
Reaction score
0
hI,

Refering to the attachment, we have set of points A,B,C,D which intersects at a point (Refer Figure)

I have written a formula in excel to calculate distance d1,d2,d3,d4 from this intersection point.

How would i know that d2 distance is negative ( or in a reverse position) without actually comparing the X,Y positions with respect to Intersection Point.

Is there any other way to do it. ?

Thanks
Zirok
 

Attachments

  • ABCD.JPG
    ABCD.JPG
    16.6 KB · Views: 553
Mathematics news on Phys.org
Your attachment is pending approval, so I don't know the details of your problem.

You should not get a negative distance, so if you are, you are doing something wrong. Assuming that your points are in the plane, the distance from a point A(a, a2) to point B(b1, b2) is
[tex]\sqrt{(b_1 - a_1)^2 + (b_2 - a_2)^2}[/tex].