Most appropriate sub-area of p5.js?
p5.js version
2.3.0
Web browser and version
Brave 1.90.122
Operating system
Linux Mint 22.1
Steps to reproduce this
Snippet:
function setup() {
let v1 = createVector(1, 2, 3);
let v2 = createVector(1, 2, 3, 4);
// Equals is symmetric so these should print the same values, but they don't
print(v1.equals(v2));
print(v2.equals(v1));
}
Discussion
To be consistent with other Vector methods, equals() should log a warning if the two vectors have different lengths, then compare the components up to the smallest length.
Most appropriate sub-area of p5.js?
p5.js version
2.3.0
Web browser and version
Brave 1.90.122
Operating system
Linux Mint 22.1
Steps to reproduce this
Snippet:
Discussion
To be consistent with other Vector methods,
equals()should log a warning if the two vectors have different lengths, then compare the components up to the smallest length.