Skip to content

Commit 6392024

Browse files
committed
reference should use copy(), not get() processing/processing-docs#282
1 parent 62737ce commit 6392024

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

core/src/processing/core/PVector.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -356,13 +356,8 @@ static public PVector fromAngle(float angle, PVector target) {
356356
}
357357

358358

359-
public PVector copy() {
360-
return new PVector(x, y, z);
361-
}
362-
363-
364359
/**
365-
* ( begin auto-generated from PVector_get.xml )
360+
* ( begin auto-generated from PVector_copy.xml )
366361
*
367362
* Gets a copy of the vector, returns a PVector object.
368363
*
@@ -372,6 +367,11 @@ public PVector copy() {
372367
* @usage web_application
373368
* @brief Get a copy of the vector
374369
*/
370+
public PVector copy() {
371+
return new PVector(x, y, z);
372+
}
373+
374+
375375
@Deprecated
376376
public PVector get() {
377377
return copy();

0 commit comments

Comments
 (0)