Rotations d'Euler
La version 11 introduit EulerMatrix pour décrire une séquence de rotations par rapport à un cadre mobile de coordonnées.
Modélisez un cardan. Chaque angle d'Euler est l'angle de rotation relatif de chaque axe.
Afficher l'entrée complète de Wolfram Language
In[2]:=

gimbal[{\[Alpha]_, \[Beta]_, \[Gamma]_}] :=
  
  Graphics3D[{GeometricTransformation[ring3, 
     EulerMatrix[{\[Alpha], 0, 0}]], 
    GeometricTransformation[ring2, 
     EulerMatrix[{\[Alpha], \[Beta], 0}]], 
    GeometricTransformation[ring1, 
     EulerMatrix[{\[Alpha], \[Beta], \[Gamma]}]]},
   ViewPoint -> {1.3, -2.4, 2.}, PlotRange -> 3.5, 
   ImageSize -> Medium];In[3]:=
gimbalframes = Table[gimbal[{i, i, i}], {i, 0, 2 Pi, Pi/32}];In[4]:=
Manipulate[
 gimbalframes[[i]], {{i, 1, "time"}, 1, Length[gimbalframes], 1}, 
 SaveDefinitions -> True]Out[4]=

