Add a method to transform a point and a rect via an affine transformation

r? @metajack (or whoever)