public wave(wave source, int index) { int length = source.get_length(); if (length != 0) { legacy = new Point[index + 1]; for (int i = 0; i <= index; i++) legacy[i] = source.get_element(i); } }