1
$\begingroup$

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.

  • 0
    Do these direction cosines specify the cylinder’s axis? Are you trying to rotate this axis to a different position?2017-01-26

1 Answers 1

0

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

  • 0
    thanks! And what about the $\Theta$ angle in this case ?2017-01-26
  • 0
    @OrP It's the angle of rotation about your axis $\mathbf k$2017-01-26
  • 0
    Hmm... I suspect the OP is looking to rotate the axis of the cylinder, not rotate around the cylinder’s axis. I’ve asked for clarification.2017-01-26
  • 0
    @amd oh! I hope he responds2017-01-26