假设您在二维平面中有两个点(a,b)。考虑到这两点,找到线段上最大点的最佳方法是距离距离它最近的每个点等距离,并且距离最小。 我使用C#,但任何语言的示例都会有所帮助。 List<'points> FindAllPointsInLine(Point start, Point end, int minDistantApart)
{
// find all points
}
上一个问题"Geoalgorithm for finding coordinates of point from a known location by distance and bearing"询问同样的事情,但找到的解决方案是粗略的近似值。我想要一个更准确的解决方案。我将结果与Great Circle Distance公式进行比较,公式是已知的最佳Geographical Distance公式