Pregunta

I have a set of points P1,P2 and P3. I am trying to find the closest point to P1 by using the angle and distance informations. As you can See the closest point to P1 is P2 base on the Y coordinates but the angle deviation is greater than the angle with P3. The point that i should chose as solution should be P3. Is there a formula or a similar problem that was solved?

Thank you.

Closest Point

¿Fue útil?

Solución

If I have understood your problem correctly, then the distance between two points is Y-distance / cos(\theta)

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top