public static void setInBuffer(Quaternion quat, FloatBuffer buf, int index) {
        buf.position(index * 4);
        buf.put(quat.getX());
        buf.put(quat.getY());
        buf.put(quat.getZ());
        buf.put(quat.getW());
    }
Sets the data contained in the given quaternion into the FloatBuffer at
the specified index.

@param quat
           the {@link Quaternion} to insert
@param buf
           the buffer to insert into
@param index
           the position to place the data; in terms of quaternions not
           floats
jme3-core/src/main/java/com/jme3/util/BufferUtils.java