void DualQuaternionTransformationTest::normalizeRotation() { Object3D o; o.setTransformation(DualQuaternion::rotation(Deg(17.0f), Vector3::xAxis())); o.normalizeRotation(); CORRADE_COMPARE(o.transformationMatrix(), Matrix4::rotationX(Deg(17.0f))); }
void RigidMatrixTransformation3DTest::normalizeRotation() { Object3D o; o.setTransformation(Matrix4::rotationX(Deg(17.0f))); o.normalizeRotation(); CORRADE_COMPARE(o.transformationMatrix(), Matrix4::rotationX(Deg(17.0f))); }