diff --git a/src/SceneGraph/DualQuaternionTransformation.h b/src/SceneGraph/DualQuaternionTransformation.h index 4245749c6..811450d19 100644 --- a/src/SceneGraph/DualQuaternionTransformation.h +++ b/src/SceneGraph/DualQuaternionTransformation.h @@ -148,6 +148,22 @@ class DualQuaternionTransformation: public AbstractTranslationRotation3D { return this; } + /* Overloads to remove WTF-factor from method chaining order */ + #ifndef DOXYGEN_GENERATING_OUTPUT + inline DualQuaternionTransformation* rotateX(Math::Rad angle, TransformationType type = TransformationType::Global) override { + AbstractTranslationRotation3D::rotateX(angle, type); + return this; + } + inline DualQuaternionTransformation* rotateY(Math::Rad angle, TransformationType type = TransformationType::Global) override { + AbstractTranslationRotation3D::rotateY(angle, type); + return this; + } + inline DualQuaternionTransformation* rotateZ(Math::Rad angle, TransformationType type = TransformationType::Global) override { + AbstractTranslationRotation3D::rotateZ(angle, type); + return this; + } + #endif + protected: /* Allow construction only from Object */ inline explicit DualQuaternionTransformation() = default;