v1.0.0-rc.60
This commit is contained in:
@@ -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};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user