public void transformPoints(Object nativeTransform,int pointSize,float[] in,int srcPos,float[] out,int destPos,int numPoints){
  float[] bufIn=new float[pointSize];
  float[] bufOut=new float[pointSize];
  int len=numPoints * pointSize;
  for (int i=0; i < len; i+=pointSize) {
    System.arraycopy(in,srcPos + i,bufIn,0,pointSize);
    transformPoint(nativeTransform,bufIn,bufOut);
    System.arraycopy(bufOut,0,out,destPos + i,pointSize);
  }
}

public void transformPoints ( Object nativeTransform , int pointSize , float [ ] in , int srcPos , float [ ] out , int destPos , int numPoints ) { float [ ] bufIn = new float [ pointSize ] ; float [ ] bufOut = new float [ pointSize ] ; int len = numPoints * pointSize ; for ( int i = 0 ; i < len ; i += pointSize ) { System . arraycopy ( in , srcPos + i , bufIn , 0 , pointSize ) ; transformPoint ( nativeTransform , bufIn , bufOut ) ; System . arraycopy ( bufOut , 0 , out , destPos + i , pointSize ) ; } }
transforms a set of points using the provided transform .
