Registered Member
|
In the docs, I read
Can you expand on that? Specifically, if the quaternion rotation is faster and cheaper, how would batch rotating an assembly of vectors change anything to that conclusion? |
Moderator
|
This is because you have to add the cost of the quaternion to matrix conversion.
|
Registered Member
|
I don't get it: you first convert quaternions to rotation matrices and then apply them to a vector?
|
Moderator
|
Let's say you have a quaternion and want to apply it to N vectors. The two options are:
1 - performs N quaternion * vector products 2 - convert the quaternion to a 3x3 matrix and performs N matrix * vector products If N=1, then option 1 is best, otherwise option 2 is better. (I'm not 100% sure for N=2) |
Registered users: Baidu [Spider], Bing [Bot], Google [Bot]