I want to set the rotation of a plane. This requires three numbers denoting the rotation in radians in the x, y and z axes.
I don't have these numbers, but, I have a vector 'myVec' that shall be orthogonal to the plane once it has been rotated.
This vector brings me one step closer, but not fully there: THREE.Vector3 provides a function "setEulerFromRotationMatrix". Maybe I could use this, if I could figure out how to generate a rotation matrix from myVec:
A rotation matrix describes how one vector transforms into another. Thus emerges the question: which vector should be the start vector? This one (1,1,1), or this one (1,0,0)?.
Second, how do I actually make the matrix? I have had a look at http://en.wikipedia.org/wiki/Rotation_matrix, but only found how to convert from rotation matrices to something else. It must be something with reversing the matrix multiplication process in some way.
Any pointers?