Implemented the hit method for the parametric curve.