The Ray Tracer Challenge: Always Square Matrices?

@jamis

I’ve been handling 2x2, 3x3, and 4x4 matrices just fine. In fact my code handles NxM matrices right now but I’ve noticed all of the examples and tests so far have only used square matrices. I can simplify my code a lot if I’ll only need to handle square matrices.

TL;DR Do I need to worry about handling non-square matrices to complete the exercises in the book?

I’m surprised that nobody has answered this sooner.

Yes, you should only ever need 4x4 square matrices. There is no reason to worry about any other size.