Add functions to point_t.
Use double type in fitCurve.
Use double type in fitCurve.