Shouldn't line 1 read
angle = 2 * Math.acos(q1.w);
(Since -1 <= w <= 1, 2w can be >1 or <-1. acos(x) is undefined if this is the case)
By: nobody ( Nobody/Anonymous )
Sorry about the error and thanks very much for pointing this out.
|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.
If you are interested in 3D games, this looks like a good book to have on the
shelf. If, like me, you want to have know the theory and how it is derived then
there is a lot for you here. Including - Graphics pipeline, scenegraph, picking,
collision detection, bezier curves, surfaces, key frame animation, level of detail,
terrain, quadtrees & octtrees, special effects, numerical methods. Includes
CDROM with code.
This site may have errors. Don't use for critical systems.