Direction Cosine axis to $3 \times 3$ rotation matrix

682 Views Asked by At

I have a cylinder axis expressed in the form of 3 Direction Cosine. I need to convert it into a full $3 \times 3$ rotation matrix in order to display it with an openGL software. Could anybody provide a pointer on this topic ?

Thanks in advance.

1

There are 1 best solutions below

4
On

You can use Rodrigues' rotation formula. The $\mathbf k$ in this context is the vector whose components are your direction cosines.