The following code:
RotationMatrix[{{0, 1, 0}, {0, -1, 0}}]
Gives an assertion message:
RotationMatrix::spln: Vectors {0,1,0} and {0,-1,0} do not define a plane.
Why can I define a RotationMatrix
in this way?
Edit I found the reason in here: Calculate Rotation Matrix to align Vector A to Vector B, this is caused by the dot product of two vectors is -1,then the equation is divided by 0.