sinclairzx81 / zero

A 3D renderer written in JavaScript and rendered to the terminal.
Other
2.41k stars 143 forks source link

vector multiplication bug #4

Closed daslomin-microsoft closed 4 years ago

daslomin-microsoft commented 4 years ago

I was casually browsing through the code out of curiosity, and it looks like the "mul" method in the fixed-dimension vector classes was accidentally copied from the "sub" method instead of containing the actual multiplication logic like in the variable-dimension vector class.

sinclairzx81 commented 4 years ago

Hi, awesome, good spotting. Have resolved.

Many thanks :)