相关疑难解决方法(0)

点与线之间的距离(从两点开始)

我正在使用Python + Numpy(也可以使用Scipy)并且有三个2D点

(P1, P2, P3); 
Run Code Online (Sandbox Code Playgroud)

我试图让P3的距离垂直于P1和P2之间绘制的直线.让P1=(x1,y1),P2=(x2,y2)P3=(x3,y3)

在矢量符号中,这将非常简单,但我对python/numpy相当新,并且无法获得任何有效(甚至关闭)的东西.

任何提示赞赏,谢谢!

python numpy point vector scipy

14
推荐指数
5
解决办法
2万
查看次数

标签 统计

numpy ×1

point ×1

python ×1

scipy ×1

vector ×1