25 #ifndef LSST_AFW_GEOM_ELLIPSES_Axes_h_INCLUDED 26 #define LSST_AFW_GEOM_ELLIPSES_Axes_h_INCLUDED 51 double const getA()
const {
return _vector[
A]; }
52 void setA(
double a) { _vector[
A] = a; }
54 double const getB()
const {
return _vector[
B]; }
55 void setB(
double b) { _vector[
B] = b; }
78 _vector = other._vector;
89 explicit Axes(
double a = 1.0,
double b = 1.0,
double theta = 0.0,
bool normalize =
false)
90 : _vector(a, b, theta) {
100 Axes(
Axes const& other) : _vector(other._vector) {}
117 virtual void _assignToAxes(
double& a,
double& b,
double& theta)
const;
136 #endif // !LSST_AFW_GEOM_ELLIPSES_Axes_h_INCLUDED virtual void _assignToAxes(double &a, double &b, double &theta) const
Axes(Axes const &other)
Copy constructor.
double const getB() const
Axes & operator=(Axes const &other)
Standard assignment.
double const getA() const
Axes(BaseCore::ParameterVector const &vector, bool normalize=false)
Construct from a parameter vector.
Axes(double a=1.0, double b=1.0, double theta=0.0, bool normalize=false)
Construct from parameter values.
Axes & operator=(BaseCore const &other)
Converting assignment.
BaseCore & operator=(BaseCore const &other)
Set the parameters of this ellipse core from another.
virtual std::shared_ptr< BaseCore > _clone() const
virtual Jacobian _dAssignFromAxes(double a, double b, double theta)
Axes(BaseCore const &other)
Converting copy constructor.
virtual void writeParameters(double *iter) const
virtual void _assignFromQuadrupole(double ixx, double iyy, double ixy)
virtual void readParameters(double const *iter)
virtual void _assignFromAxes(double a, double b, double theta)
A base class for image defects.
virtual void _assignToQuadrupole(double &ixx, double &iyy, double &ixy) const
Eigen::Vector3d ParameterVector
Parameter vector type.
Axes(BaseCore::Transformer const &transformer)
Converting copy constructor.
std::shared_ptr< Axes > clone() const
Deep copy the ellipse core.
T static_pointer_cast(T... args)
Axes(BaseCore::Convolution const &convolution)
Converting copy constructor.
An ellipse core for the semimajor/semiminor axis and position angle parametrization (a...
Eigen::Matrix3d Jacobian
Parameter Jacobian matrix type.
void setTheta(double theta)
virtual std::string getName() const
Return a string that identifies this parametrization.
A base class for parametrizations of the "core" of an ellipse - the ellipticity and size...
virtual Jacobian _dAssignFromQuadrupole(double ixx, double iyy, double ixy)
virtual Jacobian _dAssignToAxes(double &a, double &b, double &theta) const
void apply(BaseCore &result) const
double const getTheta() const
virtual Jacobian _dAssignToQuadrupole(double &ixx, double &iyy, double &ixy) const
A temporary-only expression object for ellipse core convolution.
virtual void normalize()
Put the parameters into a "standard form", if possible, and throw InvalidParameterError if they canno...