public static List < Double > mergeCoords ( List < Double > x , List < Double > y ) { if ( x . size ( ) != y . size ( ) ) throw new IllegalArgumentException ( "Sample sizes must be the same for each data applyTransformToDestination." ) ; List < Double > ret = new ArrayList < Double > ( ) ; for ( int i = 0 ; i < x . size ( ) ; i ++ ) { ret . add ( x . get ( i ) ) ; ret . add ( y . get ( i ) ) ; } return ret ; }
This will merge the coordinates of the given coordinate system .