33 r.head<3>() = _core->getParameterVector();
34 r.tail<2>() = _center.
asEigen();
39 _core->setParameterVector(vector.head<3>());
44 _core->readParameters(
iter);
45 _center.setX(
iter[3]);
46 _center.setY(
iter[4]);
50 _core->writeParameters(
iter);
51 iter[3] = _center.getX();
52 iter[4] = _center.getY();
afw::table::PointKey< int > dimensions
lsst::geom::Extent2D computeDimensions() const
Return the size of the bounding box for the ellipse core.
An ellipse defined by an arbitrary BaseCore and a center point.
ParameterVector const getParameterVector() const
Return the ellipse parameters as a vector.
void writeParameters(double *iter) const
Ellipse & operator=(Ellipse const &other)
Set the parameters of this ellipse from another.
lsst::geom::Point2D const & getCenter() const
Return the center point.
lsst::geom::Box2D computeBBox() const
Return the bounding box of the ellipse.
BaseCore const & getCore() const
Return the ellipse core.
void readParameters(double const *iter)
void setParameterVector(ParameterVector const &vector)
Set the ellipse parameters from a vector.
Eigen::Matrix< double, 5, 1 > ParameterVector
Parameter vector type.
EigenVector const & asEigen() const noexcept(IS_ELEMENT_NOTHROW_COPYABLE)
Point< double, 2 > Point2D
A base class for image defects.