   Matrix class
  Hi,I'm trying to create a matrix class to compute rotations and translations for a skeleton I'm creating. Right now, I have a main class and a Skeleton Joint class that put together form a box skeleton. I have no clue on how to do the matrix class. I'm just wondering what methods would be needed and it would be great if someone started me off since I don't have any code to show.Thank you!   
Quote:I have no clue on how to do the matrix class. I'm just wondering what methods would be needed and it would be great if someone started me off since I don't have any code to show.There are lots of matrix classes/math libraries you can use for reference (or just use); examples include the math library from Dave Eberly's WildMagic engine, the CML (linked in my signature), Eigen, and GLM. (I'm not sure what language you're targeting here, but the preceding are all C++ libraries, I believe.)If you're looking for something that's easy to follow and that you can use as a template for your own code, I'd steer clear of heavily templated libraries such as the CML and Eigen. You can probably find some good example code here on the forums as well - just search the forum archives for 'matrix class' and see what you come up with. You could also Google/search for 'matrix class' and/or 'math library' and see what you find.As for what methods are needed, as a baseline you'll want basic arithmetic operators, and basic linear algebra matrix operation such as transposition and inversion. You'll probably also want to make sure that the matrix data is stored in a format that's compatible with whatever API(s) you'll be using the library with.Once you have the basics down, you can start adding various transform functions (e.g. rotation, translation, etc.) as needed. And, if you run into any problems, you can always ask for help here on the forums :)   