/** Store a value in this EventIn as a place holder for the buffering system. */ private void storeValue(float[][] newValue) { if (newValue != null) { if (storedValue == null || storedValue.length != (newValue.length * 4)) storedValue = new float[newValue.length * 4]; ArrayUtils.flatten4(newValue, newValue.length, storedValue); } else storedValue = null; hasStoredValue = true; }
/** * Construct a new field based on all the given 4D array of values. * * @param vecs The vec values to use */ public ConstMFRotation(float vecs[][]) { numElements = vecs.length; data = new float[vecs.length * 4]; ArrayUtils.flatten4(vecs, vecs.length, data); }