Need a paramerterized version of this function and need to generate an arc length table for the curve