transform method
Applies this transformation to the src coordinate and places the results in the dest coordinate (which may be the same as the source).
@param src the coordinate to transform @param dest the coordinate to accept the results @return the dest coordinate
Implementation
Coordinate transform(Coordinate src, Coordinate dest) {
double xp = m00 * src.x + m01 * src.y + m02;
double yp = m10 * src.x + m11 * src.y + m12;
dest.x = xp;
dest.y = yp;
return dest;
}