Class Goniometer

Class Documentation

class Goniometer

Public Functions

Goniometer() = default
Goniometer(std::vector<Vector3d> axes, std::vector<double> angles, std::vector<std::string> names, std::size_t scan_axis)
Goniometer(json goniometer_data)
Goniometer(Matrix3d sample_rotation, Vector3d axis, Matrix3d setting_rotation)
Matrix3d get_setting_rotation() const
Matrix3d get_sample_rotation() const
Vector3d get_rotation_axis() const
json to_json() const

Protected Functions

void init()
Matrix3d calculate_setting_rotation()
Matrix3d calculate_sample_rotation()

Protected Attributes

Matrix3d sample_rotation_ = {{1, 0, 0}, {0, 1, 0}, {0, 0, 1}}
Vector3d rotation_axis_ = {{1.0, 0.0, 0.0}}
Matrix3d setting_rotation_ = {{1, 0, 0}, {0, 1, 0}, {0, 0, 1}}
std::vector<Vector3d> axes_ = {}
std::vector<double> angles_ = {}
std::vector<std::string> names_ = {}
std::size_t scan_axis_ = 0