diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-09-21 01:30:06 (GMT) |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-09-21 01:30:06 (GMT) |
commit | 2dfdd7d0f937f2d3fe7cb5327ac199f701de7890 (patch) | |
tree | 52a16fa388dacd4788777b1dc008f56e8c9920f1 /tests/manual/keypadnavigation/main.cpp | |
parent | 11fed1f64f43593a2890e0a3f27b4e2e7ebde783 (diff) | |
download | Qt-2dfdd7d0f937f2d3fe7cb5327ac199f701de7890.zip Qt-2dfdd7d0f937f2d3fe7cb5327ac199f701de7890.tar.gz Qt-2dfdd7d0f937f2d3fe7cb5327ac199f701de7890.tar.bz2 |
Increase precision when normalizing vectors
QVector3D::normalize() and other similar functions were losing
precision when qreal was float, causing vectors with small lengths
to normalize to (0, 0, 0). Do the length calculations with
double precision to avoid this problem.
Reviewed-by: Sarah Smith
Diffstat (limited to 'tests/manual/keypadnavigation/main.cpp')
0 files changed, 0 insertions, 0 deletions