summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-08-19 23:05:43 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-08-19 23:05:43 (GMT)
commitfeabd6584880c775a516d157c9cd24f0e707060d (patch)
tree2534b40681c8957c72f713c4fdfb53b876ec10df /tests
parent865a649b68f2b09c887527d42f1216a841c62474 (diff)
downloadQt-feabd6584880c775a516d157c9cd24f0e707060d.zip
Qt-feabd6584880c775a516d157c9cd24f0e707060d.tar.gz
Qt-feabd6584880c775a516d157c9cd24f0e707060d.tar.bz2
Add projection support to QMatrix4x4::toTransform()
When converting from 3D back to 2D, it is necessary to project the z component unless an orthographic projection is desired. This change adds a distanceToPlane argument that specifies the perspective projection factor to apply during the conversion. The default value of 1024 corresponds to the projection performed by QTransform::rotate(), for consistency with existing classes. Reviewed-by: trustme
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions