[Interest] Applying transformation

Sean Harmer sean.harmer at kdab.com
Wed Apr 5 16:02:22 CEST 2017


On Wednesday 05 April 2017 16:30:52 Igor Mironchik wrote:
> Hi,
> 
> 05.04.2017 16:12, Sean Harmer пишет:
> > 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
> 
> Sorry for my question. But what the difference between M v and v M?

We treat v as a column vector, so we pre-multiply by the matrix M.

Cheers,

Sean

> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

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