text: # Maths - Rotations using quaternions - Samples in 90 degree steps
  
  ## Sample Rotations
  
  In order to try to explain things and give some examples we can try I thought it might help to show the rotations for a finite subset of the rotation group. We will use the set of rotations of a cube onto itself, this is a permutation group which gives 24 possible rotations as explaned on this page.
  
  Heading applied first giving 4 possible orientations:
  
   reference orientation q = 1 rotate by 90 degrees about y axis q = 0.7071 + j 0.7071 rotate by 180 degrees about y axis q = j rotate by 270 degrees about y axis q = 0.7071 - j 0.7071 (equivilant rotation to: -0.7071 + j 0.7071)
  
  Then apply attitude +90 degrees for each of the above: (note: that if we went on to apply bank to these it would just rotate between these values, the straight up and streight down orientations are known as singularities because they can be fully defined without using the bank value) post multiply above by 0.7071 + k 0.7071 to give:
  
   q = 0.7071 + k 0.7071 q = 0.5 + i 0.5 + j 0.5 + k 0.5 q = i 0.7071 +j 0.7071 q = 0.5 - i 0.5 - j 0.5 + k 0.5
  
  Or instead apply attitude -90 degrees (also a singularity): post multiply top row by 0.7071 - k 0.7071 to give:
  
   q = 0.7071 - k 0.7071 (equivilant rotation to: -0.7071 + k 0.7071) q = 0.5 - i 0.5 + j 0.5 - k 0.5 q = -i 0.7071 + j 0.7071 (equivilant rotation to: i 0.7071 - j 0.7071) q = 0.5 + i 0.5 - j 0.5 - k 0.5
  
  Normally we dont go beond attitude + or - 90 degrees because thes are singularities, instead apply bank +90 degrees: post multiply top row by 0.7071 + i 0.7071 to give:
  
   q = 0.7071 + i 0.7071 q = 0.5 + i 0.5 + j 0.5 - k 0.5 q = j 0.7071 - k 0.7071 q = 0.5 + i 0.5 - j 0.5 + k 0.5
  
  Apply bank +180 degrees: post multiply top row by i to give:
  
   q = i q = i 0.7071 - k 0.7071 q = k q = i 0.7071 + k 0.7071
  
  Apply bank -90 degrees: post multiply top row by 0.7071 - i 0.7071 to give:
  
   q = 0.7071 - i 0.7071 (equivilant rotation to: -0.7071 + i 0.7071) q = 0.5 - i 0.5 + j 0.5 + k 0.5 q = j 0.7071 + k 0.7071 q = 0.5 - i 0.5 - j 0.5 - k 0.5
  
  encoding of these rotations in matricies is shown here.
  encoding of these rotations in axis-angle is shown here.
  encoding of these rotations in euler angles is shown here.
  
   metadata block see also: Correspondence about this page Book Shop - Further reading. Where I can, I have put links to Amazon for books that are relevant to the subject, click on the appropriate country flag to get more details of the book or to buy it from them. Quaternions and Rotation Sequences. Specific to this page here:
  
  This site may have errors. Don't use for critical systems.
  
  Copyright (c) 1998-2017 Martin John Baker - All rights reserved - privacy policy.
explanation: The document provides a detailed explanation of quaternion rotations, specifically focusing on the rotations of a cube onto itself. It lists various quaternion values for different rotations, including heading, attitude, and bank angles. The document does not contain a specific question or a question and answer; it is more of an explanatory text with examples.
distilabel_metadata.content: Evaluate the user given text extract and determine if it contains a math question and optionally and answer to this question.
  
  Output rules:
  
  1. Briefly describe the document and mention if it contains a question or a question and answer.
  2. Finalize the output with: Label: no-question,question,question-and-answer,multiple-question,multiple-question-and-answer
distilabel_metadata.role: system
distilabel_metadata.content: # Maths - Rotations using quaternions - Samples in 90 degree steps
  
  ## Sample Rotations
  
  In order to try to explain things and give some examples we can try I thought it might help to show the rotations for a finite subset of the rotation group. We will use the set of rotations of a cube onto itself, this is a permutation group which gives 24 possible rotations as explaned on this page.
  
  Heading applied first giving 4 possible orientations:
  
   reference orientation q = 1 rotate by 90 degrees about y axis q = 0.7071 + j 0.7071 rotate by 180 degrees about y axis q = j rotate by 270 degrees about y axis q = 0.7071 - j 0.7071 (equivilant rotation to: -0.7071 + j 0.7071)
  
  Then apply attitude +90 degrees for each of the above: (note: that if we went on to apply bank to these it would just rotate between these values, the straight up and streight down orientations are known as singularities because they can be fully defined without using the bank value) post multiply above by 0.7071 + k 0.7071 to give:
  
   q = 0.7071 + k 0.7071 q = 0.5 + i 0.5 + j 0.5 + k 0.5 q = i 0.7071 +j 0.7071 q = 0.5 - i 0.5 - j 0.5 + k 0.5
  
  Or instead apply attitude -90 degrees (also a singularity): post multiply top row by 0.7071 - k 0.7071 to give:
  
   q = 0.7071 - k 0.7071 (equivilant rotation to: -0.7071 + k 0.7071) q = 0.5 - i 0.5 + j 0.5 - k 0.5 q = -i 0.7071 + j 0.7071 (equivilant rotation to: i 0.7071 - j 0.7071) q = 0.5 + i 0.5 - j 0.5 - k 0.5
  
  Normally we dont go beond attitude + or - 90 degrees because thes are singularities, instead apply bank +90 degrees: post multiply top row by 0.7071 + i 0.7071 to give:
  
   q = 0.7071 + i 0.7071 q = 0.5 + i 0.5 + j 0.5 - k 0.5 q = j 0.7071 - k 0.7071 q = 0.5 + i 0.5 - j 0.5 + k 0.5
  
  Apply bank +180 degrees: post multiply top row by i to give:
  
   q = i q = i 0.7071 - k 0.7071 q = k q = i 0.7071 + k 0.7071
  
  Apply bank -90 degrees: post multiply top row by 0.7071 - i 0.7071 to give:
  
   q = 0.7071 - i 0.7071 (equivilant rotation to: -0.7071 + i 0.7071) q = 0.5 - i 0.5 + j 0.5 + k 0.5 q = j 0.7071 + k 0.7071 q = 0.5 - i 0.5 - j 0.5 - k 0.5
  
  encoding of these rotations in matricies is shown here.
  encoding of these rotations in axis-angle is shown here.
  encoding of these rotations in euler angles is shown here.
  
   metadata block see also: Correspondence about this page Book Shop - Further reading. Where I can, I have put links to Amazon for books that are relevant to the subject, click on the appropriate country flag to get more details of the book or to buy it from them. Quaternions and Rotation Sequences. Specific to this page here:
  
  This site may have errors. Don't use for critical systems.
  
  Copyright (c) 1998-2017 Martin John Baker - All rights reserved - privacy policy.
distilabel_metadata.role: user
distilabel_metadata.raw_output_q_a_detector_0: The document provides a detailed explanation of quaternion rotations, specifically focusing on the rotations of a cube onto itself. It lists various quaternion values for different rotations, including heading, attitude, and bank angles. The document does not contain a specific question or a question and answer; it is more of an explanatory text with examples.
  
  Label: no-question