summaryrefslogtreecommitdiffstats
path: root/src/gui/math3d
Commit message (Collapse)AuthorAgeFilesLines
* Fix signature for QGenericMatrix::fill()Rhys Weatherley2009-06-022-3/+3
| | | | The signature was using qreal, when it should have used T.
* Optimize QMatrix4x4::map() for QVector3D/QPoint/QPointFRhys Weatherley2009-06-021-45/+90
| | | | | Use the matrix "flagBits" to short-cut transformations when the matrix type is identity/translate/scale.
* QMatrix4x4::scale(qreal,qreal) and QMatrix4x4::translate(qreal,qreal) methodsAaron Kennedy2009-06-022-2/+81
|
* Optimize QMatrix4x4::mapRect() for translation and scale operationsRhys Weatherley2009-06-022-30/+65
|
* Fixed typos 'indended' -> 'intended'Thorbjørn Lindeijer2009-04-212-6/+6
|
* Optimize vector normalize for vectors of length 1Rhys Weatherley2009-04-155-39/+63
| | | | | | If the square of the length is very close to 1, then avoid the qSqrt(). Reviewed-by: trustme
* Add the QQuaternion::nlerp() function as a counterpart to slerp()Rhys Weatherley2009-04-152-0/+41
| | | | | | | | nlerp() implements "normalized linear interpolation", which is faster than slerp() and gives approximate results that are good enough for some applications. Reviewed-by: trustme
* Rename QQuaternion::interpolate() to slerp()Rhys Weatherley2009-04-152-2/+2
| | | | | | slerp() is the more common-place name in the 3D community. Reviewed-by: trustme
* Remove the int constructors from the vector classesRhys Weatherley2009-04-158-37/+0
| | | | | | | | The int constructors existed to make fixed-point conversions faster in certain circumstances. With the removal of fixed-point support, they are no longer required. Reviewed-by: trustme
* Rename qIsFuzzyNull to qFuzzyIsNullBjoern Erik Nilsen2009-04-081-1/+1
| | | | | | | | | | The function was added in fde7f3d03782c801901f511131458d6fcb1021a5 and we believe qFuzzyIsNull is a better naming and more in line with qFuzzyCompare. Reviewed-by: Lars Knoll Reviewed-by: nrc Reviewed-by: Samuel
* Use qIsFuzzyNull rather than the more expensive qFuzzyCompareBjoern Erik Nilsen2009-04-081-1/+1
| | | | | | | See also fde7f3d03782c801901f511131458d6fcb1021a5 Reviewed-by: Olivier Reviewed-by: Samuel
* Remove fixed-point support from math3dRhys Weatherley2009-04-0817-2084/+380
| | | | | | | | | The main use case for fixed-point support is to build large arrays of vertices. This can be handled using qvertextype or something similar at higher levels. So it isn't worth risking numerical instability in the core classes. Reviewed-by: trustme
* Update the license on this code to match the rest.Thiago Macieira2009-03-3117-17/+527
| | | | | | These sources had the old headers. Update to the new LGPL ones. Reviewed-by: TrustMe
* Long live Qt!Lars Knoll2009-03-2318-0/+7700