Sign up ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

how to transform a cylinder from a coordinate system having orthogonal basis vectors $v_1$, $v_2$ and $v_3$ into another a coordinate system having orthogonal basis vectors $\begin{pmatrix}1\\0\\0\end{pmatrix}$, $\begin{pmatrix}0\\1\\0\end{pmatrix}$ and $\begin{pmatrix}0\\0\\1\end{pmatrix}$.

share|cite|improve this question

migrated from Feb 9 '12 at 22:04

This question came from our site for professional and enthusiast programmers.

An example would help. – Dan W Feb 9 '12 at 18:29
So would a better formed question. Are you asking about a rotation of a coordinate system? – ldigas Feb 9 '12 at 19:42
Your question literally asks how to transform a cylinder into a coordinate system. :-\. – Zéychin Feb 9 '12 at 22:29

1 Answer 1

Make a Rotation Matrix from the vectors $u$, $v$ and $w$ by arranging them in columns such that:


Now any vector $a=\begin{pmatrix}a_x\\a_y\\a_z\end{pmatrix}$ is transformed from the local coordinates to the world coordinates with vectors $\mathcal{i}=\begin{pmatrix}1\\0\\0\end{pmatrix}$, $\mathcal{j}=\begin{pmatrix}0\\1\\0\end{pmatrix}$ and $\mathcal{k}=\begin{pmatrix}0\\0\\1\end{pmatrix}$ by simple matrix multiplication


thats it.

share|cite|improve this answer
translation should also be included – INS Feb 18 '13 at 11:10
The OP never mentioned translations. – ja72 Feb 18 '13 at 14:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.