Move curvature calculations into Curve.evaluate(), and define unit tests for it.