diff options
author | Sarah Smith <sarah.j.smith@nokia.com> | 2011-02-16 14:58:28 +1000 |
---|---|---|
committer | Sarah Smith <sarah.j.smith@nokia.com> | 2011-02-16 14:58:28 +1000 |
commit | b5076fb392894e71b44b4762d0567354ef1c8a9e (patch) | |
tree | fb626b9b1df8814a88b7642d4eb8fd6dbada5ecc /src/gui/math3d/qvector2d.cpp | |
parent | 0b0358732cafc34d4b6794200752ac9cb99de569 (diff) | |
download | qt4-tools-b5076fb392894e71b44b4762d0567354ef1c8a9e.tar.gz |
Add a "note well" to QVectorXD re float precision.
Several bug-reports ask for clarifications/warnings in the doc for this
class, since it stores in float, but has a qreal interface (as per qt
convention).
Change-Id: I32ffcde3733866942134e881567eef367a5620f5
Task-number: QTBUG-8216
Reviewed-by: Rhys Weatherley
Diffstat (limited to 'src/gui/math3d/qvector2d.cpp')
-rw-r--r-- | src/gui/math3d/qvector2d.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/math3d/qvector2d.cpp b/src/gui/math3d/qvector2d.cpp index 7f5a937195..1fccfc9f88 100644 --- a/src/gui/math3d/qvector2d.cpp +++ b/src/gui/math3d/qvector2d.cpp @@ -60,6 +60,11 @@ QT_BEGIN_NAMESPACE The QVector2D class can also be used to represent vertices in 2D space. We therefore do not need to provide a separate vertex class. + \bold{Note:} By design values in the QVector2D instance are stored as \c float. + This means that on platforms where the \c qreal arguments to QVector2D + functions are represented by \c double values, it is possible to + lose precision. + \sa QVector3D, QVector4D, QQuaternion */ |