[Development] Move math3d from QtGui to QtCore

Uwe Rathmann Uwe.Rathmann at tigertal.de
Mon Jul 9 11:44:55 CEST 2012


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 ).

Uwe



More information about the Development mailing list