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

rename -> RotMatrix::Inverse

parent a176c2f9
No related branches found
No related tags found
1 merge request!927RotMatrix API name changes
......@@ -67,7 +67,7 @@ std::array<double, 3> RotMatrix::zxzEulerAngles() const
return {std::atan2(m02, -m12), beta, std::atan2(m20, m21)};
}
RotMatrix RotMatrix::getInverse() const
RotMatrix RotMatrix::Inverse() const
{
return {-x, -y, -z, s};
}
......@@ -91,7 +91,7 @@ template C3 RotMatrix::transformed<C3>(const C3& v) const;
template <class T>
T RotMatrix::transformedInverse(const T& v) const
{
return getInverse().transformed(v);
return Inverse().transformed(v);
}
template R3 RotMatrix::transformedInverse<R3>(const R3& v) const;
......
......@@ -46,7 +46,7 @@ public:
std::array<double, 3> zxzEulerAngles() const;
//! Returns the inverse transformation.
RotMatrix getInverse() const;
RotMatrix Inverse() const;
//! Return transformed vector _v_.
template <class T>
......
......@@ -100,7 +100,7 @@ complex_t ReParticle::formfactor_at_bottom(C3 q) const
complex_t ReParticle::theFF(const WavevectorInfo& wavevectors) const
{
WavevectorInfo wavevectors2 =
m_rotMatrix ? wavevectors.transformed(m_rotMatrix->getInverse()) : wavevectors;
m_rotMatrix ? wavevectors.transformed(m_rotMatrix->Inverse()) : wavevectors;
complex_t result = m_ff->theFF(wavevectors2);
if (m_material && m_ambient_material)
result = (m_material->scalarSubtrSLD(wavevectors2)
......@@ -114,7 +114,7 @@ complex_t ReParticle::theFF(const WavevectorInfo& wavevectors) const
SpinMatrix ReParticle::thePolFF(const WavevectorInfo& wavevectors) const
{
WavevectorInfo wavevectors2 =
m_rotMatrix ? wavevectors.transformed(m_rotMatrix->getInverse()) : wavevectors;
m_rotMatrix ? wavevectors.transformed(m_rotMatrix->Inverse()) : wavevectors;
SpinMatrix result = m_ff->thePolFF(wavevectors2);
if (m_material && m_ambient_material) {
// the conjugated linear part of time reversal operator T
......
......@@ -166,7 +166,7 @@ RotationEuler::RotationEuler(double alpha, double beta, double gamma)
IRotation* RotationEuler::createInverse() const
{
RotMatrix inverse_transform(rotMatrix().getInverse());
RotMatrix inverse_transform(rotMatrix().Inverse());
return createRotation(inverse_transform);
}
......
......@@ -14,7 +14,7 @@ protected:
void InversionTest(const RotMatrix& mRot, const R3& a0)
{
const RotMatrix mInv = mRot.getInverse();
const RotMatrix mInv = mRot.Inverse();
const R3 a1 = mRot.transformed(a0);
const R3 a2 = mInv.transformed(a1);
......@@ -47,7 +47,7 @@ TEST_F(RotMatrixTest, RotateZ)
EXPECT_NEAR(v.y(), 1.0, epsilon);
EXPECT_DOUBLE_EQ(v.z(), 2.0);
const RotMatrix m4 = m3.getInverse();
const RotMatrix m4 = m3.Inverse();
const R3 w = m4.transformed(v);
EXPECT_NEAR(w.x(), a.x(), epsilon);
......
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