public void transform ( Point [ ] pointsIn , int count , Point [ ] pointsOut ) { Point2D res = new Point2D ( ) ; for ( int i = 0 ; i < count ; i ++ ) { Point2D p = pointsIn [ i ] . getXY ( ) ; res . x = xx * p . x + xy * p . y + xd ; res . y = yx * p . x + yy * p . y + yd ; pointsOut [ i ] = new Point ( res . x , res . y ) ; } }
Transforms an array of points .