Total curvature (source code)

= Total curvature
{wiki}

The total curvature of a regular curve is
$$
\int\kappa\,ds.
$$
It equals the length traced by the unit tangent on the unit sphere, so lifting a planar circle into a helix can reduce total curvature even when both curves make one revolution around the same axis.