bezier-curve: Simplify control point hit detection.