GoniometerAxis: Transformation is based on angle, not image number

This commit is contained in:
2026-01-30 14:02:10 +01:00
parent 7693b95008
commit b7b38b8e7d
7 changed files with 15 additions and 11 deletions
+2 -4
View File
@@ -120,9 +120,7 @@ std::vector<double> GoniometerAxis::GetAngleContainerEnd(int64_t max_image_numbe
return angle_container;
}
RotMatrix GoniometerAxis::GetTransformation(int64_t image_number) const {
// Transformation goes back from rotated to "start"
auto angle_deg = GetAngle_deg(image_number);
RotMatrix GoniometerAxis::GetTransformationAngle(float angle_deg) const {
auto angle_rad = angle_deg / 180.0f * static_cast<float>(M_PI);
return {angle_rad, axis};
}
}