public static Point transformPoint(AffineTransform af,Point pt){
  Point2D src=new Point2D.Float(pt.x,pt.y);
  Point2D dest=af.transform(src,null);
  Point point=new Point((int)Math.floor(dest.getX()),(int)Math.floor(dest.getY()));
  return point;
}

public static Point transformPoint ( AffineTransform af , Point pt ) { Point2D src = new Point2D . Float ( pt . x , pt . y ) ; Point2D dest = af . transform ( src , null ) ; Point point = new Point ( ( int ) Math . floor ( dest . getX ( ) ) , ( int ) Math . floor ( dest . getY ( ) ) ) ; return point ; }
given an arbitrary point , get the point with the given transform .
