v1.0.0-rc.60

This commit is contained in:
2025-07-05 18:52:42 +02:00
parent 016e86cbc5
commit fbaf15aa07
156 changed files with 541 additions and 152 deletions
+7 -1
View File
@@ -27,7 +27,7 @@ GoniometerAxis::GoniometerAxis(const std::string& in_name,
name = in_name;
start = in_start;
increment = in_increment;
axis = in_axis;
axis = in_axis.Normalize(); // Make sure rotation axis is normalized!
helical_step = in_helical_step;
}
@@ -120,3 +120,9 @@ 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);
auto angle_rad = angle_deg / 180.0f * static_cast<float>(M_PI);
return {angle_rad, axis};
}