假设您在二维平面中有两个点 (a, b)。给定这两个点,找到线段上与最接近它的每个点等距且相距最小的最大点的最佳方法是什么。
我使用 C#,但任何语言的示例都会有所帮助。
List<'points> FindAllPointsInLine(Point start, Point end, int minDistantApart) { // find all points }
algorithm geometry distance
algorithm ×1
distance ×1
geometry ×1