Tool for calculating a transition matrix (change of basis) based on a homothety or rotation in a vector space and coordinate change calculations.
Transition Matrix - dCode
Tag(s) : Matrix
dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!
The transition matrix is the matrix allowing a calculation of change of coordinates according to a homothety or a rotation in a vector space.
From a transformation matrix $ P $ (also called base change of basis matrix), any vector $ v $ then becomes the vector $ v' $ in the new base by the computation (dot / multiplication">matrix product) $$ v' = P.v $$
Example: $ \begin{bmatrix} v_1' \\ v_2' \end{bmatrix} = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} . \begin{bmatrix} v_1 \\ v_2 \end{bmatrix} $
From a rotation angle $ \alpha $ (trigonometric direction) and an axis, the rotation matrix is written as (rotation around the axis $ z $) $$ \begin {bmatrix} \cos \alpha & - \sin \alpha & 0 \\ \sin \alpha \cos \alpha & 0 \\ 0 & 0 & 1 \ \end{bmatrix} $$
From 2 vectors (the original and the destination one), it is possible to generate an equation system to solve to find the values of $ \alpha $ and the axis.
From the value of the scaling factor $ k $ (homothety assumed to be uniform throughout the vector space of size $ n $), the passing matrix is given by the formula $ k.I_n $ (with $ I_n $ the identity matrix).
dCode retains ownership of the "Transition Matrix" source code. Any algorithm for the "Transition Matrix" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "Transition Matrix" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) or any database download or API access for "Transition Matrix" or any other element are not public (except explicit open source licence like Creative Commons). Same with the download for offline use on PC, mobile, tablet, iPhone or Android app.
Reminder: dCode is an educational and teaching resource, accessible online for free and for everyone.
The content of the page "Transition Matrix" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source.
Exporting the results is free and can be done simply by clicking on the export icons ⤓ (.csv or .txt format) or ⧉ (copy and paste).
To cite dCode.fr on another website, use the link:
In a scientific article or book, the recommended bibliographic citation is: Transition Matrix on dCode.fr [online website], retrieved on 2025-04-16,