From 175bb4d646c356a8667c6049626bbbc8340177ee Mon Sep 17 00:00:00 2001 From: Daniel Shiffman Date: Fri, 21 Aug 2015 13:24:35 -0400 Subject: [PATCH] reference should use copy(), not get() https://github.com/processing/processing-docs/issues/282 --- core/src/processing/core/PVector.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/src/processing/core/PVector.java b/core/src/processing/core/PVector.java index 72c26a093..5fd1d1e7c 100644 --- a/core/src/processing/core/PVector.java +++ b/core/src/processing/core/PVector.java @@ -356,13 +356,8 @@ public class PVector implements Serializable { } - public PVector copy() { - return new PVector(x, y, z); - } - - /** - * ( begin auto-generated from PVector_get.xml ) + * ( begin auto-generated from PVector_copy.xml ) * * Gets a copy of the vector, returns a PVector object. * @@ -372,6 +367,11 @@ public class PVector implements Serializable { * @usage web_application * @brief Get a copy of the vector */ + public PVector copy() { + return new PVector(x, y, z); + } + + @Deprecated public PVector get() { return copy();