public static void copyInternal(FloatBuffer buf, int fromPos, int toPos, int length) {
        float[] data = new float[length];
        buf.position(fromPos);
        buf.get(data);
        buf.position(toPos);
        buf.put(data);
    }
Copies floats from one position in the buffer to another.

@param buf
           the buffer to copy from/to
@param fromPos
           the starting point to copy from
@param toPos
           the starting point to copy to
@param length
           the number of floats to copy
jme3-core/src/main/java/com/jme3/util/BufferUtils.java