3d "compose"?
#9129
Replies: 1 comment 5 replies
|
Rotation3d.plus() got removed in favor of Rotation3d.rotateBy() since Rotation3d.plus() isn't commutative like Rotation2d.plus(). Renaming Transform3d.plus() to Transform3d.compose() sounds like a good idea since it's also not commutative. Same goes for Transform2d.plus(). I'm not a fan of providing Rotation3d.compose() because it implies an argument symmetry that doesn't exist. I also prefer the more descriptive name. Now that I think about it, maybe Transform3d.plus() should be renamed to Transform3d.transformBy(). |
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Today I became briefly confused about the difference between Rotation3d.plus() and Transform3d.plus(), imagining that they both meant "compose". Of course Rotation3d doesn't do that, and in 2027 the "plus" method is gone anyway.
But it made me wonder if a consistent "compose" method might be a good idea? It would be an onramp to the ideas of matrix multiplication and the Lie group operator.
I'm aware that reversing the operands would have the same effect, but that doesn't really ameliorate the confusion (to me).
All reactions