5
« on: December 26, 2009, 01:08:32 pm »
Hello,
I'm having some issues with the sf::Matrix3 class. It might be that I am completely misunderstanding the class but I was just questioning some interface decisions here.
Why aren't there Get/Set functions for:
Scale()
Rotation()
Translation()
And why doesn't the header file say whether it's a row or column matrix? Or at least explain the lay-out so that I could create my own matrix class and create a conversion between mine and sf::Matrix3.
And even worse, why does it start counting from 1 instead of 0? If I create a matrix with an translation X and Y, this is how I managed to get those values back from the matrix:
float x = someMatrix( 3, 1 );
float y = someMatrix( 4, 1 ); // 4 should be outside the array in a 4x4 matrix ... another point: why aren't there bounds checking asserts in the operator () ?
Thank you so much for reading my moaning about the Matrix3 class,
Dolf
Edit: And why is it in graphics instead of system?