Point-in-Polygon

Here's an example of using Java's AffineTransform class to rotate, scale and translate a polygon. Note how the last-specified-first-applied rule in the transform applies the rotation first, then the scale, and then the translate.