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. Except explicit open source licence (indicated Creative Commons / free), the "Transition Matrix" algorithm, the applet or snippet (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or the "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.) and all data download, script, or API access for "Transition Matrix" are not public, same for offline use on PC, mobile, tablet, iPhone or Android app!
Reminder : dCode is free to use.
The copy-paste of the page "Transition Matrix" or any of its results, is allowed (even for commercial purposes) as long as you credit dCode!
Exporting results as a .csv or .txt file is free by clicking on the export icon
Cite as source (bibliography):
Transition Matrix on dCode.fr [online website], retrieved on 2024-12-19,