public float[] toArray(float[] floats) {
        if (floats == null) {
            floats = new float[4];
        }
        floats[0] = x;
        floats[1] = y;
        floats[2] = z;
        floats[3] = w;
        return floats;
    }
Saves this Vector4f into the given float[] object.

@param floats
           The float[] to take this Vector4f. If null, a new float[4] is
           created.
@return The array, with X, Y, Z, W float values in that order
jme3-core/src/main/java/com/jme3/math/Vector4f.java