I have a vector V= and several line segments Seg1, Seg2, Seg3, Seg4.
I want to know how to rotate each of the line segments so that the X axis is parallel to my given vector.
How can I do this?
Note: I am aware that I can get the angle of rotation by taking the inner product of my vector and the x-unit vector (i.e. V DOT X) but I am unaware of what to do after this.