Java Array Combine combineArrays(float[]... arrays)

Here you can find the source of combineArrays(float[]... arrays)

Description

combine Arrays

License

Open Source License

Declaration

public static float[] combineArrays(float[]... arrays) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static float[] combineArrays(float[]... arrays) {
        int size = arrays[0].length;
        float[] result = new float[arrays.length * arrays[0].length];

        for (int i = 0; i < arrays.length; i++) {
            for (int j = 0; j < size; j++) {
                result[i * size + j] = arrays[i][j];
            }// ww  w .ja  v  a 2s .  co m
        }

        return result;
    }
}

Related

  1. combine(Object[] array1, Object[] array2, Object[] combinedArray)
  2. combine(Object[] first, Object[] last)
  3. combine(Object[] objects, String glue)
  4. combineAlpha(float[] partsAlpha, int partsN)
  5. combineArrays(final Object[] array1, final Object[] array2, final Object[] targetArray)
  6. combineByteArray(byte[] one, byte[] two)
  7. combineChannels(int[][] a, int[][] r, int[][] g, int[][] b, int[][] pixels)
  8. combineChunksToByteArray(byte chunks[][])
  9. combineComponent(float[] partsComponent, float[] partsAlpha, int partsN)