Affine transformations in PHP made easy.