Determines if a point lies on the curve.
The param parameter is only set to a meaningful value if this function returns true.