Curvature measures how much a curve deviates from a straight line or a surface deviates from a plane.