code: public static float[] copyOfRange(final float[] original, final int from, final int to) {
          if (from == 0 && to == original.length) {
              return original.clone();
          }
  
          final int newLength = to - from;
          final float[] copy = new float[newLength];
          copy(original, from, copy, 0, Math.min(original.length - from, newLength));
          return copy;
      }
docs: @see Arrays#copyOfRange(float[], int, int)
  
  @param original
  @param from
  @param to
  @return