Closed player-03 closed 1 month ago
I don't think this fixes the error @joshtynjala reported, though it's worth checking. Yes, b
and c
were swapped, but they were swapped twice: once in the constructor and once in the getter/setter. Since all existing code accessed the properties rather than the underlying array, it wouldn't matter how out of order the array was.
I don't think this fixes the error @joshtynjala reported, though it's worth checking.
I confirm that it does not, but it's good that you've made things more consistent.
What "column-major" means
Now that
Matrix3
is stored as a one-dimensional array (see #1778), it's important to keep careful track of what order data is stored in. I chose column-major order because that's what GLSL uses, and it's also howMatrix4
works.This PR swaps
b
andc
(which had been backwards), adds documentation, and tidies up.