Skip to content

Commit bf8b0d4

Browse files
authored
Merge pull request #8838 from processing/set-docs
Correct set() documentation
2 parents 735dbf0 + daf4874 commit bf8b0d4

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/math/p5.Vector.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -310,17 +310,12 @@ class Vector {
310310
}
311311

312312
/**
313-
* Sets the vector's `x`, `y`, and `z` components.
313+
* Sets the the vector to a new value.
314314
*
315315
* `set()` can use separate numbers, as in `v.set(1, 2, 3)`, a
316316
* <a href="#/p5.Vector">p5.Vector</a> object, as in `v.set(v2)`, or an
317317
* array of numbers, as in `v.set([1, 2, 3])`.
318318
*
319-
* If a value isn't provided for a component, it will be set to 0. For
320-
* example, `v.set(4, 5)` sets `v.x` to 4, `v.y` to 5, and `v.z` to 0.
321-
* Calling `set()` with no arguments, as in `v.set()`, sets all the vector's
322-
* components to 0.
323-
*
324319
* @param {Number} [x] x component of the vector.
325320
* @param {Number} [y] y component of the vector.
326321
* @param {Number} [z] z component of the vector.

0 commit comments

Comments
 (0)