Calculates the curvature of a parametric curve function at a value.