GoniometerAxis: Transformation is based on angle, not image number
This commit is contained in:
@@ -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};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user