Hi List,
I have just come across the new 3D maths classes in Qt 4.6 (e.g.
QVector{2,3,4}D and friends). From the documentation it is not clear when we
should use the original QPointF class for storing 2D coords/vertices etc and
when we should use the new QVector2D.
Furthermore, although the QVector2D class API deals with qreal's internally
the class only stores floats. This is misleading and could lead to loss of
precision by users of this (and related) classes unless they happen to be
actually using real's rather than doubles.
Would these classes not make more sense as templates so that we can use them
with either floats or doubles? Or better still why not simply use an existing
linear algebra package such as Eigen? Licensing?
ATB,
Sean
_______________________________________________
Qt4-preview-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback