logo back up home forward   further reading more topics »

Maths - Euler Angles - Sample Orientations

In order to try to explain things I thought it might help to work out a simple case where rotations are only allowed in mutiples of 90 degrees. This should make it easier to illustrate the orientation with a simple aeroplane figure, we can rotate this either about the x,y or z axis as shown here:

When we combine these rotations about the x,y and z axies in 90 degree multiples there are 24 possible orientations as shown here:

heading applied first giving 4 possible orientations:

right up

reference orientation

heading = 0
attitude = 0
bank = 0

back up

rotate by 90 degrees about y axis

heading = 90 degrees
attitude = 0
bank = 0

left up

rotate by 180 degrees about y axis

heading = 180 degrees
attitude = 0
bank = 0

forward up

rotate by 270 degrees about y axis

heading = -90 degrees
attitude = 0
bank = 0

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)

up left

heading = 0
attitude = 90 degrees
bank = 0

up forward

heading = 90 degrees
attitude = 90 degrees
bank = 0

up right

heading = 180 degrees
attitude = 90 degrees
bank = 0

up back

heading = -90 degrees
attitude = 90 degrees
bank = 0

Or instead apply attitude -90 degrees (also a singularity):

down right

heading = 0
attitude = -90 degrees
bank = 0

down back

heading = 90 degrees
attitude = -90 degrees
bank = 0

down left

heading = 180 degrees
attitude = -90 degrees
bank = 0

down forward

heading = -90 degrees
attitude = -90 degrees
bank = 0

Normally we dont go beond attitude + or - 90 degrees because thes are singularities, instead apply bank +90 degrees:

right forward

heading = 0
attitude = 0
bank = 90 degrees

back right

heading = 90 degrees
attitude = 0
bank = 90 degrees

left back

heading = 180 degrees
attitude = 0
bank = 90 degrees

forward left

heading = -90 degrees
attitude = 0
bank = 90 degrees

Apply bank +180 degrees:

right down

heading = 0
attitude = 0
bank = 180 degrees

back down

heading = 90 degrees
attitude = 0
bank = 180 degrees

left down

heading = 180 degrees
attitude = 0
bank = 180 degrees

forward down

heading = -90 degrees
attitude = 0
bank = 180 degrees

Apply bank -90 degrees:

right back

heading = 0
attitude = 0
bank = 90 degrees

back left

heading = 90 degrees
attitude = 0
bank = 90 degrees

left foward

heading = 180 degrees
attitude = 0
bank = 90 degrees

forward right

heading = -90 degrees
attitude = 0
bank = 90 degrees

encoding of these rotations in quaternions is shown here.
encoding of these rotations in matricies is shown here.
encoding of these rotations in axis-angle is shown here.

 

The working to convert each of these to matrix 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.

cover 3D Math Primer - Aimed at complete beginners to vector and matrix algebra.

Other Math Books

Commercial Software Shop

Where I can, I have put links to Amazon for commercial software, not directly related to the software project, but related to the subject being discussed, click on the appropriate country flag to get more details of the software or to buy it from them.

cover Dark Basic Professional Edition - It is better to get this professional edition

cover This is a version of basic designed for building games, for example to rotate a cube you might do the following:
make object cube 1,100
for x=1 to 360
rotate object 1,x,x,0
next x

cover Game Programming with Darkbasic - book for above software

 

Can you help?

Please send me any improvements to here. I would appreciate ideas to make the pages more useful including error correction, ideas for new pages, improvements to wording. It helps if you quote the full URL of the page.

 

progam

I am working on a project which uses these principles, if you would like to help me with this you are welcome to join in, here:

http://sourceforge.net/projects/mjbworld/

This site may have errors. Don't use for critical systems.

Copyright (c) 1998-2008 Martin John Baker - All rights reserved - privacy policy.