| further reading | more topics » |
| programs | 3D theory | physics | maths | software | technology | about site | sitemap |
| index | algebra | geometry | calculus | discrete | statistics | standards |
index |
space |
elements |
surface |
transformations | trigonometry |
||
| rotation | affine | theory | |||||
index |
angles |
euler |
axis angle |
direction cosines | convertions |
frame-of- reference |
as 2 reflections |
From: "Tristen Georgiou"
To: "Martin Baker"
Subject: Axis and Angle
Date: 24 May 2002 19:31
To whom it may concern:
The following page
http://www.euclideanspace.com/threed/scenegraph/rotations/axis.htm
has a small error in the java code algorithm for converting Axis and Angle
to Matrix.
The errors occur in the following code (the bottom 9 lines) and are in red
font.
tmp1 = a1.x*a1.z*omc;
tmp2 = a1.y*s;
m02 = tmp1 - tmp2;
m12 = tmp1 + tmp2;
tmp1 = a1.x*a1.z*omc;
tmp2 = a1.y*s;
m20 = tmp1 + tmp2;
m21 = tmp1 - tmp2;
The corrected code follows with corrections in blue:
tmp1 = a1.x*a1.z*omc;
tmp2 = a1.y*s;
m02 = tmp1 - tmp2;
m20 = tmp1 + tmp2;
tmp1 = a1.x*a1.z*omc;
tmp2 = a1.x*s;
m12 = tmp1 + tmp2;
m21 = tmp1 - tmp2;
Tristen
|
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. |
|
|
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. |
|
|
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: |
|
This site may have errors. Don't use for critical systems.
Copyright (c) 1998-2010 Martin John Baker - All rights reserved - privacy policy.