code: public void setValue(int size, float[] newValue) {
          if ( ((newValue.length%2) == 0) && ((newValue.length/2) == size)) {
              try {
                  for (int i = 0; i < size; i++) {
                      value.set(i, new SFVec2f(newValue[i*3], newValue[i*3+1]));
                  }
              }
              catch (IndexOutOfBoundsException e) {
                  Log.e(TAG, "X3D MFVec2f setValue(size,newValue[]) out of bounds." + e);
              }
              catch (Exception e) {
                  Log.e(TAG, "X3D MFVec2f setValue(size, newValue[]) exception " + e);
              }
          }
          else {
              Log.e(TAG, "X3D MFVec2f setValue() set with newValue[] length not multiple of 2, or equal to size parameter");
          }
      }
docs: Assign an array subset to this field.
  @param size - number of new values
  @param newValue - array of the new x,y values, must be divisible by 2,
  in a single dimensional array