Skip to content
Snippets Groups Projects
Commit 29fafce4 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

prefer IdentityRotation over RotationZ(0)

parent 8bc8e6fe
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,7 @@ IRotation* IRotation::createRotation(const Transform3D& transform)
IRotation* IRotation::createIdentity()
{
return new RotationZ(0.0);
return new IdentityRotation;
}
kvector_t IRotation::transformed(const kvector_t& v) const
......@@ -91,7 +91,7 @@ IdentityRotation::IdentityRotation()
Transform3D IdentityRotation::getTransform3D() const
{
return Transform3D::createIdentity();
return {};
}
// ************************************************************************** //
......
This diff is collapsed.
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do not make
* changes to this file unless you know what you are doing--modify the SWIG
* interface file instead.
* ----------------------------------------------------------------------------- */
#ifndef SWIG_libBornAgainBase_WRAP_H_
#define SWIG_libBornAgainBase_WRAP_H_
#include <map>
#include <string>
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment