我正在使用Python + Numpy(也可以使用Scipy)并且有三个2D点
(P1, P2, P3);
我试图让P3的距离垂直于P1和P2之间绘制的直线.让P1=(x1,y1),P2=(x2,y2)和P3=(x3,y3)
P1=(x1,y1)
P2=(x2,y2)
P3=(x3,y3)
在矢量符号中,这将非常简单,但我对python/numpy相当新,并且无法获得任何有效(甚至关闭)的东西.
任何提示赞赏,谢谢!
python numpy point vector scipy
numpy ×1
point ×1
python ×1
scipy ×1
vector ×1