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)
Krylloan
By: nobody ( Nobody/Anonymous )
Sorry about the error and thanks very much for pointing this out.
Martin
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. |
|
This site may have errors. Don't use for critical systems.
Copyright (c) 1998-2023 Martin John Baker - All rights reserved - privacy policy.