- #1
TheDestroyer
- 402
- 1
I have a C++ class for a math vector. I would like to add a function that rotates this vector in 3D, so that the user could input the direction of rotation as a norm vector, and the angle with which he would like to rotate, and have the function automatically rotate the initial vector for him and return the new 3 components.
What's the way to do it? could you guys please provide me with this transformation as
v'(vx',vy',vz') = f(θ,a,b,c,v(vx,vy,vz))
Where θ is the angle, a,b,c, is the norm to rotation direction, and v is the initial vector, and v' is the rotated vector.
Thank you for any efforts :-)
What's the way to do it? could you guys please provide me with this transformation as
v'(vx',vy',vz') = f(θ,a,b,c,v(vx,vy,vz))
Where θ is the angle, a,b,c, is the norm to rotation direction, and v is the initial vector, and v' is the rotated vector.
Thank you for any efforts :-)