/ \ / \ /
| 1.0 0.0 0.0 0.0 | | 1.0 0.0 0.0 0.0 | | 1.0 0.0 0.0 0.0 |
| 0.0 1.0 0.0 0.0 | * | 0.0 Cos(angle) Sin(angle) 0.0 | = | 0.0 Cos(angle) 0.0 0.0 |
| 0.0 0.0 1.0 0.0 | | 0.0 -Sin(angle) Cos(angle) 0.0 | | 0.0 0.0 Cos(angle) 0.0 |
| 0.0 0.0 0.0 1.0 | | 0.0 0.0 0.0 1.0 | | 0.0 0.0 0.0 1.0 |
\ / \ / \ /
hopefully you can see it, if not copy it into notepad.
Can you help me with this?
Article #02: Matrices
Hello,
I'm wondering why there are different results when I use OpenGL's
glRotatef_() 2 times and multiplying 2 rotationmatrices. And I want to
know how to use a matrix on a vector(without OpenGL or DirectX or
other renderers). And when I multiply the identity matrix with a
rotationmatrix I'll get this:
Thanks
December 30, 2005 10:03 AM
You're not doing matrix multiplication. You are multiplying each element of the matrix by the corresponding element of the other matrix. Matrix multiplication is something completely different.
Google for matrix multiplication, and you will find the correct algorithm.
Google for matrix multiplication, and you will find the correct algorithm.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement