Calculating curvature
Curvature is easy to grasp but tricky to compute, though it approximates the second derivative when slope is small. For smoothed triangles, max curvature occurs at corners and min along sides, both derived from a cubic equation.