Tejas Somaiya Tejas Somaiya - 2 years ago 84
Python Question

How do you find a point where 2 points meet at a right angle in Python?

As shown in image, I need to find point P3 in Python.


enter image description here

Answer Source

In a usual (x,y) Cartesian coordinate system(*), the point P3 is at coordinates (P2.x, P1.y)

enter image description here

(*) thanks to TigerHawk and Selcuk for their added precision.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download