I have a 2D square ABCD in a 3D space, with side length 2s
, that is represented by four vectors (one for each vertex) and a fifth vector v
for the center point.
The square lies standing upright on the plane z = -1
(xy plane).
v = < 0, 0, -1>
OA = <-s, s, -1>
OB = < s, s, -1>
OC = <-s,-s, -1>
OD = < s,-s, -1>
Now, consider point P
anywhere in the 3D space. I want to rotate the square around the origin, such that v
aligns with OP
. The result that I want is mainly the resulting rotated OA
, OB
, OC
and OD
vectors.
The point P
is arbitrary and can be any point in the 3D space. Any help is greatly appreciated!