Most appropriate sub-area of p5.js?
p5.js version
2.0.5
Web browser and version
141.0.7390.108 (Official Build) (64-bit) (cohort: Stable)
Operating system
Windows
Steps to reproduce this
Snippet:
function setup() {
let v = createVector(5, 5, 5, 5);
let w = createVector(2, 2, 2, 2);
v.rem(w);
// Expected: [1, 1, 1, 1]
// Actual: [1, 1, 1, 5]
console.log(v.toString());
}
Here's a live version in the web editor.