GoniometerAxis: Transformation is based on angle, not image number

This commit is contained in:
2026-01-23 09:54:45 +01:00
parent 7693b95008
commit b7b38b8e7d
7 changed files with 15 additions and 11 deletions
+2 -1
View File
@@ -576,7 +576,8 @@ TEST_CASE("XtalOptimizer_rotation") {
// Predict reflections for images at 0-30 deg.
for (int img = 0; img < 10; ++img) {
// For a rotated image, per-image lattice is obtained as Multiply(rot.transpose())
const RotMatrix rot = axis.GetTransformation(img);
const float angle_deg = axis.GetAngle_deg(img) + axis.GetWedge_deg() / 2.0f;
const RotMatrix rot = axis.GetTransformationAngle(angle_deg);
const CrystalLattice latt_img = latt_base.Multiply(rot.transpose());
const auto n = prediction.Calc(exp_i, latt_img, prediction_settings);