Continuity for piecewise linear functions