r=o+t*d
t1 = (p-o)*d/(d*d);
代入原方程中求出距离最近的点r1 = o+t*d
求点p与r1的距离,若无限接近与0,说点p在直线上
Powered by: 博客园 Copyright © 2024 Zhiyett Powered by .NET 8.0 on Kubernetes