Well, my first question is whether I need to use matrices or not: I have a load of 2D vectors I want to rotate and/or scale. Should I do this using plain trig or use matrices?
Can someone help me to understand how to use matrices to do 2D transformations, please? Or, point me to a decent tutorial for dummies than explains things without resorting to too much mathsy symbols, etc.?
Basically I need to know:
- How to set up matrices to do rotation and/or scaling i.e. what values I need to place in each element.
- How to combine a scaling matrix and a rotation matrix in order to perform both transformations in one go (this can be done, right?).
- How to perform the transformation on a given vector (i.e. what order I need to multiply/add the vector components with the matrix elements).
Thanks in advance.
Can someone help me to understand how to use matrices to do 2D transformations, please? Or, point me to a decent tutorial for dummies than explains things without resorting to too much mathsy symbols, etc.?
Basically I need to know:
- How to set up matrices to do rotation and/or scaling i.e. what values I need to place in each element.
- How to combine a scaling matrix and a rotation matrix in order to perform both transformations in one go (this can be done, right?).
- How to perform the transformation on a given vector (i.e. what order I need to multiply/add the vector components with the matrix elements).
Thanks in advance.