Writing a computer graphics related program, I cant figure out how to solve the following problem:
In a 3D space, I have given:
- 3 distinct points, that describe a plane.
- 2 of those points describe a line (inside the plane).
I am now looking for:
- The vector that is orthogonal to the line, and also lies inside the plane.
As I use the resulting vector as the rotation axis of a quaternion rotation, the direction (positive/negative) or length doesnt matter. How can I calculate this vector?
Thanks in advance!