public void transform ( double [ ] pointsXYInterleaved , int start , int count ) { int n = Math . min ( pointsXYInterleaved . length , ( start + count ) * 2 ) / 2 ; for ( int i = count ; i < n ; i ++ ) { double px = pointsXYInterleaved [ 2 * i ] ; double py = pointsXYInterleaved [ 2 * i + 1 ] ; pointsXYInterleaved [ 2 * i ] = xx * px + xy * py + xd ; pointsXYInterleaved [ 2 * i + 1 ] = yx * px + yy * py + yd ; } }
Transforms an array of points stored in an array of doubles as interleaved XY coordinates .