What is a way to visualize 3D trajectory data that contains a set of (x,y,z) coordinates that also contains pitch roll yaw (Alpha,Beta,Gamma) angles?

  • $\begingroup$ Graphics3D with Point and Arrow will help you $\endgroup$
    – Rom38
    Mar 5, 2019 at 5:06
  • $\begingroup$ This could be useful to others and to me. Please could you post your answer as an edit to your question. $\endgroup$
    – Hugh
    Mar 5, 2019 at 16:37

1 Answer 1

  1. Look up Graphics3D if you haven't yet, and study creating basic graphics.

  2. Construct an object that is suitable for representing 3D rotations (e.g. a small triangle or even an aeroplane). Mathematica comes with multiple 3D objects built-in, such as ExampleData[{"Geometry3D", "SpaceShuttle"}]. You might want to use them. Extract the primitives using ExampleData[{"Geometry3D", "SpaceShuttle"}, "GraphicsComplex"]

  3. Create a rotation matrix from pitch/roll/yaw values using EulerMatrix.

  4. Use GeometricTransformation in Graphics3D as GeometricTransformation[object, {rotationMatrix, translation}].

  5. You can use multiple {matrix, translation} pairs in a list in GeometricTransformation, so you can easily visualize the object in one go at several time points. Use Line to draw the trajectory in the same scene.

  • $\begingroup$ Thank you @Szabolcs, works great! $\endgroup$
    – Levi
    Mar 5, 2019 at 15:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.