forked from: Closest Point Bezier Curve