I'm working on a C++11-based math library (for fun) and am thinking about matrices lately. First, I know the difference between row and column major. That's not my question.
My questions are:
- How often do you program in a row/column major dependent way vs how often do you program in a row/column major agnostic way? (for me, I've only found row/column majorness to only matter when passing matrices to my shaders... how often does the importance of row/column majorness pop up for you?)
- What majorness do you most often use?
- Have you ever needed to support both row and column major matrices (in the same program)?
- If you have supported both row and column major matrices, what's your preferred way of distinguishing between the two? Postfixing a "_r" or "_c" on the end of the type name? Adding a template parameter?
I'm just trying to think of "the real world" when making this...