Most appropriate sub-area of p5.js?
p5.js version
2.*
Web browser and version
all
Operating system
all
Steps to reproduce this
There is a typo in the p5.Quat multiplication;
In line https://github.com/processing/p5.js/blob/main/src/webgl/p5.Quat.js#L44 where it reads this.vec.z - quat.vec.z it should be this.vec.z * quat.vec.z. It is just replacing the - for *.
It quite easy to verify agains the textbook quaternion multiplication.
I am not sure about the implications this has in p5, as of how extensively this has afected p5 in general.
Not sure either if there have been other fixes to compesate this error in other places of the math.
Most appropriate sub-area of p5.js?
p5.js version
2.*
Web browser and version
all
Operating system
all
Steps to reproduce this
There is a typo in the p5.Quat multiplication;
In line https://github.com/processing/p5.js/blob/main/src/webgl/p5.Quat.js#L44 where it reads
this.vec.z - quat.vec.zit should bethis.vec.z * quat.vec.z. It is just replacing the-for*.It quite easy to verify agains the textbook quaternion multiplication.
I am not sure about the implications this has in p5, as of how extensively this has afected p5 in general.
Not sure either if there have been other fixes to compesate this error in other places of the math.