[Development] Move math3d from QtGui to QtCore

gunnar.sletta at nokia.com gunnar.sletta at nokia.com
Mon Jul 9 12:43:56 CEST 2012


On Jul 9, 2012, at 11:44 AM, ext Uwe Rathmann wrote:

> On 07/09/2012 11:30 AM, Thiago Macieira wrote:
>> But we need to explain the difference between QPointF / QVector2D and QPointF3D
>> and QVector3D. A point's coordinates are equal to that of the vector pointing
>> to the point in question from the origin of the coordinate system.
>> 
>> Laszlo, you're proposing this API. Now you get to explain when to use one and
>> when to use the other.
> 
> Isn't the answer simply: always use QPointF, QPointF3D - beside for the 
> specific use case where QVector2D, QVector3D was made for. And here 
> Gunnar could tell, why he was not using QPointF ( if this is not already 
> explained enough in the Qt4 docs for QPointF vs. QVector2D ).

The primary reason is the internal representation. At the time, I was against their introduction as I felt them too tied to the OpenGL and Qt 3D. Today, I've come to accept that they make sense as it is very difficult to write OpenGL code without some basic math support from the library. 

> 
> Uwe
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development




More information about the Development mailing list