Check if a point is inside a rectangle (only knowing distances to rectangle vertices)

kabal

New member
Joined
May 29, 2015
Messages
1
Hi,

I have to solve the following problem:
I have 4 points (A, B, C, D) which form a rectangle, but I do not know their coordinates. I have another point (X), I do not know its coordinates either, but I know the distances between point X and all other 4 points (XA, XB, XC, XD). I need to be able to tell if X lies within a rectangle formed by A, B, C, D.
Any help appreciated.
 
Hi,

I have to solve the following problem:
I have 4 points (A, B, C, D) which form a rectangle, but I do not know their coordinates. I have another point (X), I do not know its coordinates either, but I know the distances between point X and all other 4 points (XA, XB, XC, XD). I need to be able to tell if X lies within a rectangle formed by A, B, C, D.
Any help appreciated.

http://math.stackexchange.com/questions/190111/how-to-check-if-a-point-is-inside-a-rectangle
 
Ishuda, were you thinking of the triangle-sum method, at that reference?
 
Denis, in your post, you typed an opening tag without an ending tag. That error may affect any reply that quotes it.

Without including a quote of your post, caps-in-the-code works for me.

Code:
A B C 

XYZ
 
Top