From daf4874397fc9bce68e9d42dc6c1fdf9f0b455cc Mon Sep 17 00:00:00 2001 From: kit Date: Thu, 28 May 2026 16:13:32 +0200 Subject: [PATCH] Correct set() documentation --- src/math/p5.Vector.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/math/p5.Vector.js b/src/math/p5.Vector.js index 4c1952a16b..0360ec4b49 100644 --- a/src/math/p5.Vector.js +++ b/src/math/p5.Vector.js @@ -310,17 +310,12 @@ class Vector { } /** - * Sets the vector's `x`, `y`, and `z` components. + * Sets the the vector to a new value. * * `set()` can use separate numbers, as in `v.set(1, 2, 3)`, a * p5.Vector object, as in `v.set(v2)`, or an * array of numbers, as in `v.set([1, 2, 3])`. * - * If a value isn't provided for a component, it will be set to 0. For - * example, `v.set(4, 5)` sets `v.x` to 4, `v.y` to 5, and `v.z` to 0. - * Calling `set()` with no arguments, as in `v.set()`, sets all the vector's - * components to 0. - * * @param {Number} [x] x component of the vector. * @param {Number} [y] y component of the vector. * @param {Number} [z] z component of the vector.