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

有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top