« Le langage CSS/Transformation géométrique » : différence entre les versions
Contenu supprimé Contenu ajouté
Ligne 117 :
\end{bmatrix}
</math>
Chaque transformation géométrique correspond à une matrice.
{| class="wikitable"
! Fonction de transformation
! Matrice équivalente
|-
| <code>matrice(''a'', ''b'', ''c'', ''d'', ''tx'', ''ty'')</code>
| <math>
\begin{bmatrix}
a & c & tx \\
b & d & ty \\
0 & 0 & 1
\end{bmatrix}
</math>
|-
| <code>translate(''tx'', ''ty'')</code>
| <math>
\begin{bmatrix}
1 & 0 & tx \\
0 & 1 & ty \\
0 & 0 & 1
\end{bmatrix}
</math>
|-
| <code>scale(''sx'', ''sy'')</code>
| <math>
\begin{bmatrix}
sx & 0 & 0 \\
0 & sy & 0 \\
0 & 0 & 1
\end{bmatrix}
</math>
|}
== Références ==
|