Hallo, B. Bogart hat gesagt: // B. Bogart wrote:
How do I specify the angle of rotation using matrix multiplication?
Attached is an example for a rotation of a 3-dimensional vector around the x-axis, which is straight from a geometrY book like this: http://mathworld.wolfram.com/RotationMatrix.html
It's basically the same thing that you are doing, however it's simplified for educational purposes. ;) (The expr can be optimized a bit of course.)
Rotation simply is matrix multiplication using matrices which follow certain rules. For many purposes the three Rx, Ry and Rz matrices from the mathworld site are sufficient, which are easy to use in zexy-mtx objects. But you can also create more complex rotation matrices. For this some more math might be needed: http://mathworld.wolfram.com/EulerAngles.html
NB: I heard, that there is a nameclash somewhere with the [matrix] object so I always use the objects using their [mtx] abbreviation to be on the safe side.
Frank Barknecht _ ______footils.org__
_ __latest track: "scans" _ http://footils.org/cms/show/41