diff --git a/core/src/processing/data/DoubleList.java b/core/src/processing/data/DoubleList.java index 2bd7a97f5..e6d126d59 100644 --- a/core/src/processing/data/DoubleList.java +++ b/core/src/processing/data/DoubleList.java @@ -734,22 +734,34 @@ public class DoubleList implements Iterable { } + @Deprecated + public double[] array() { + return toArray(); + } + + /** * Create a new array with a copy of all the values. * @return an array sized by the length of the list with each of the values. * @webref doublelist:method * @brief Create a new array with a copy of all the values */ - public double[] array() { + public double[] toArray() { return array(null); } + @Deprecated + public double[] array(double[] array) { + return toArray(array); + } + + /** * Copy values into the specified array. If the specified array is * null or not the same size, a new array will be allocated. */ - public double[] array(double[] array) { + public double[] toArray(double[] array) { if (array == null || array.length != count) { array = new double[count]; }