Wolfram Language

Core Geometry

Roll, Pitch, and Yaw Rotations

Version 11 introduces RollPitchYawMatrix to describe a sequence of rotations with respect to a fixed coordinate frame. It is often used to model rigid body rotations in robotics and aerospace.

show complete Wolfram Language input
Click for copyable input
iShow[trans_] := Show[trans, Method -> {"ShrinkWrap" -> False}, PlotRange -> 8, ImageSize -> {300, 300}]; plane = ExampleData[{"Geometry3D", "SpaceShuttle"}, "Region"]; Manipulate[ iShow[TransformedRegion[plane, AffineTransform@RollPitchYawMatrix[{r, p, y}, {1, 2, 3}]]], {{r, 0, "roll"}, -Pi, Pi, Pi/32}, {{p, 0, "pitch"}, -Pi, Pi, Pi/32}, {{y, 0, "yaw"}, -Pi, Pi, Pi/32}, SaveDefinitions -> True]
Play Animation
Stop Animation

Related Examples

de es fr ja ko pt-br ru zh