Closest point on a cubic Bezier curve?

后端 未结 5 1572
一向
一向 2020-11-27 13:26

How can I find the point B(t) along a cubic Bezier curve that is closest to an arbitrary point P in the plane?

5条回答
  •  心在旅途
    2020-11-27 13:56

    There is also DOM SVG specific implementations of the closest point algorithms from Mike Bostock’s:

    https://bl.ocks.org/mbostock/8027637

    https://bl.ocks.org/mbostock/8027835

提交回复
热议问题