You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not any two Transforms can be combined into one.
For instance, you can't combine these two: Tranform(vec3(0, 0, 0), angleAxis(45.0f * QUAT_DEG2RAD, vec3(0, 0, 1)), vec3(1, 1, 1)) Tranform(vec3(0, 0, 0), quat(), vec3(1, 0.5, 1))
To illustrate, here's an example of applying these two Transforms to an axis-aligned square with the origin in the center:
So Transform::combine doesn't give the expected result in this case.
Possible solutions:
Either narrow the definition of Transform to prohibit non-uniform scales:
Not any two
Transform
s can be combined into one.For instance, you can't combine these two:
Tranform(vec3(0, 0, 0), angleAxis(45.0f * QUAT_DEG2RAD, vec3(0, 0, 1)), vec3(1, 1, 1))
Tranform(vec3(0, 0, 0), quat(), vec3(1, 0.5, 1))
To illustrate, here's an example of applying these two
Transform
s to an axis-aligned square with the origin in the center:So
Transform::combine
doesn't give the expected result in this case.Possible solutions:
Transform
to prohibit non-uniform scales:Transform::combine
at all.The text was updated successfully, but these errors were encountered: