Skip to content
Snippets Groups Projects
Commit 13cee884 authored by Michael Wedel's avatar Michael Wedel
Browse files

Refs #14970. Renamed member variable

parent b7ad233f
No related branches found
No related tags found
No related merge requests found
......@@ -161,7 +161,7 @@ protected:
const V3R &vector) const;
size_t m_order;
Kernel::IntMatrix m_inverseMatrix;
Kernel::IntMatrix m_transposedInverseMatrix;
V3R m_reducedVector;
std::string m_identifier;
......
......@@ -9,7 +9,7 @@ namespace Geometry {
/// Default constructor, results in identity.
SymmetryOperation::SymmetryOperation()
: m_order(1), m_inverseMatrix(Kernel::IntMatrix(3, 3, true)),
: m_order(1), m_transposedInverseMatrix(Kernel::IntMatrix(3, 3, true)),
m_reducedVector(), m_identifier(), m_matrixVectorPair() {
m_identifier = SymmetryOperationSymbolParser::getNormalizedIdentifier(
m_matrixVectorPair.getMatrix(), m_matrixVectorPair.getVector());
......@@ -52,9 +52,9 @@ void SymmetryOperation::init(const Kernel::IntMatrix &matrix,
MatrixVectorPair<int, V3R>(matrix, getWrappedVector(vector));
// Inverse matrix for HKL operations.
m_inverseMatrix = Kernel::IntMatrix(matrix);
m_inverseMatrix.Invert();
m_inverseMatrix = m_inverseMatrix.Transpose();
m_transposedInverseMatrix = Kernel::IntMatrix(matrix);
m_transposedInverseMatrix.Invert();
m_transposedInverseMatrix = m_transposedInverseMatrix.Transpose();
m_order = getOrderFromMatrix(m_matrixVectorPair.getMatrix());
m_identifier = SymmetryOperationSymbolParser::getNormalizedIdentifier(
......@@ -136,7 +136,7 @@ bool SymmetryOperation::hasTranslation() const {
* @return :: Transformed index triplet.
*/
Kernel::V3D SymmetryOperation::transformHKL(const Kernel::V3D &hkl) const {
return m_inverseMatrix * hkl;
return m_transposedInverseMatrix * hkl;
}
/**
......
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