コード例 #1
0
 /** 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;
 }
コード例 #2
0
  /**
   * 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);
  }