Calculate the curvature of a spline

Those can be helpful: