summaryrefslogtreecommitdiffstats
path: root/src/gui/math3d
Commit message (Collapse)AuthorAgeFilesLines
* Doc: Document that coordinates are dropped.Volker Hilsheimer2009-07-252-4/+8
|
* Add the math3d types to QVariantRhys Weatherley2009-07-2310-24/+247
| | | | Reviewed-by: Sarah Smith
* Directly copy QGenericMatrix members instead of using qMemCopy()Rhys Weatherley2009-07-091-1/+3
| | | | | | | | Using qMemCopy limits QGenericMatrix to plain old types like float and double. Copying the values normally will allow copy constructors to work on non plain types. Reviewed-by: trustme
* Remove some left-over mentions of fixed-point in math3dRhys Weatherley2009-07-095-20/+3
| | | | Reviewed-by: trustme
* Define M_PI in qmath.h if not defined by math.h (as is the case on Windows), ↵Volker Hilsheimer2009-07-082-8/+0
| | | | and remove duplicate defines elsewhere.
* Update license headers in files that are new in 4.6.Jason McDonald2009-06-1712-24/+24
| | | | Reviewed-by: Trust Me
* doc: Fixed several qdoc errors.Martin Smith2009-06-161-1/+1
|
* doc: Fixed several qdoc warnings.Martin Smith2009-06-151-1/+1
|
* Fix some incorrect license headers.Jason McDonald2009-06-1012-12/+12
| | | | | | | The MODULE placeholder shouldn't be used anymore, and neither should the old Trolltech license header. Reviewed-by: Trust Me
* 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