public static void setInBuffer(Vector2f vector, FloatBuffer buf, int index) {
        buf.put(index * 2, vector.x);
        buf.put((index * 2) + 1, vector.y);
    }
Sets the data contained in the given Vector2F into the FloatBuffer at the
specified index.

@param vector
           the data to insert
@param buf
           the buffer to insert into
@param index
           the position to place the data; in terms of vectors not floats
jme3-core/src/main/java/com/jme3/util/BufferUtils.java