[Interest] Applying transformation

Sean Harmer sean.harmer at kdab.com
Wed Apr 5 15:12:10 CEST 2017


On Wednesday 05 April 2017 15:55:48 Igor Mironchik wrote:
> Hello,
> 
> Can I apply Qt3DCore::QTransform to the QVector3D?
> 
> How can I calculate new QVector3D if Qt3DCore::QTransform will be
> applied to it, in other words?

The transformation is stored in the matrix property. Pre-multiply your vector 
by the matrix to get the resulting transformed vector:

v' = M v

Sean
-- 
Dr Sean Harmer | sean.harmer at kdab.com | Managing Director UK
KDAB (UK) Ltd, a KDAB Group company
Tel. +44 (0)1625 809908; Sweden (HQ) +46-563-540090
Mobile: +44 (0)7545 140604
KDAB - Qt Experts



More information about the Interest mailing list