VecR32.java 425 B

12345678910111213141516171819202122232425
  1. /** This is the runtime support for generic vectors.
  2. *
  3. * Written August 2004, John Gough.
  4. *
  5. *
  6. *
  7. */
  8. package CP.CPJvec;
  9. public class VecR32 extends VecBase
  10. {
  11. public float[] elms;
  12. public void expand() {
  13. float[] tmp = new float[this.elms.length * 2];
  14. for (int i = 0; i < this.tide; i++) {
  15. tmp[i] = this.elms[i];
  16. }
  17. this.elms = tmp;
  18. }
  19. }