Ratio division looks wrong
etiago opened this issue · 0 comments
etiago commented
In the following line:
Instead of:
r operator/(r a, r b) { return {a.x * b.x, a.y * b.y}; }
I think this is showing the division of two ratios and it should show:
r operator/(r a, r b) { return {a.x * b.y, a.y * b.x}; }
More generally, the division shows exactly the same as the multiplication which doesn't seem to make sense.