Class MEAL::Rotation1
-
class Rotation1 : public MEAL::Complex2
Represents a rotation (passive unitary transformation) about a fixed axis.
This class represents passive transformation that rotates the basis through an angle, \(\phi\), about a fixed unit vector, \(\hat n\), as defined by the right-hand rule.
When transformed by the rotation matrix returned by this object, a vector is rotated about the specified axis by \(\- phi\).
Public Functions
-
Rotation1(const Vector<3, double> &axis)
Construct for the specified axis.
-
void set_axis(const Vector<3, double> &axis)
Set the axis about which the rotation occurs.
-
Vector<3, double> get_axis() const
Get the axis about which the rotation occurs.
-
void set_phi(const Estimate<double> &radians)
Set the rotation angle in radians.
-
Estimate<double> get_phi() const
Get the rotation angle in radians.
-
void set_parameter_policy(OneParameter *policy)
Set the parameter management policy.
-
void set_param_name(const std::string &name)
Set the name of the parameter.
-
void set_param_description(const std::string &name)
Set the description of the parameter.
-
virtual std::string get_name() const
Return the name of the class.
-
virtual void parse(const std::string &line)
Parse the values of model parameters and fit flags from a string.
-
virtual void print(std::string &text) const
Print the values of model parameters and fit flags to a string.
-
Rotation1(const Vector<3, double> &axis)