I have a simple question.
Find the matrix for the rotation of $90^\circ$ counter-clockwise around the vector $v = (1,2,2)$
My first approach here was to create $3$ vectors, $(1,0,0),(0,1,0),(0,0,1)$ and see how a $90^\circ$ rotation effected them. Then take the matrix of that times the vector in this question. However, that seems to be wrong.
Can anyone show me how to do this?
/John.
You can get the matrix you want by applying your rotation (in some way) to the 3 basis vectors, and use those 3 basis vectors as columns of your matrix.
Now to apply your rotation to a vector:
Normalize $v$ so that it has length 1.
The rotated version of any vector $x$ is $(x\cdot v)v + x \times v$. The first term represents the part of $x$ parallel to $v$ and isn't affected by the rotation, the second term is the part perpendicular to $v$, rotated by 90 degrees.