I am trying to multiply two vectors elementwise using p5.Vector.mult(). It shows some odd behavior.
Could you tell me what am I doing wrong?
My code:
let v1 = createVector(-1,1,0);
const rot_axis = p5.Vector.mult(this.orbit_normal,v1);
print('A');
print(this.orbit_normal,v1);
print('B');
print (rot_axis);
print('C');
Output:
Why is the mult function showing odd behavior?