Piecewise affine transform example.