22 #ifndef LSST_GEOM_AFFINE_TRANSFORM_H 23 #define LSST_GEOM_AFFINE_TRANSFORM_H 88 : _linear(matrix.block<2, 2>(0, 0)), _translation(matrix.block<2, 1>(0, 2)) {}
91 explicit AffineTransform(Eigen::Matrix2d
const &linear) noexcept : _linear(linear), _translation() {}
95 : _linear(), _translation(translation) {}
98 explicit AffineTransform(Eigen::Matrix2d
const &linear, Eigen::Vector2d
const &translation) noexcept
99 : _linear(linear), _translation(translation) {}
109 : _linear(linear), _translation(translation) {}
163 double &
operator[](
int i) {
return (i < 4) ? _linear[i] : _translation[i - 4]; }
164 double operator[](
int i)
const {
return (i < 4) ? _linear[i] : _translation[i - 4]; }
178 _linear +=
other._linear;
179 _translation +=
other._translation;
190 _linear -=
other._linear;
191 _translation -=
other._translation;
289 #endif // !LSST_GEOM_AFFINE_TRANSFORM_H
A class representing an angle.
Point< double, 2 > Point2D
A base class for image defects.
std::ostream & operator<<(std::ostream &os, lsst::geom::AffineTransform const &transform)
ItemVariant const * other
Extent< double, 2 > Extent2D
AffineTransform makeAffineTransformFromTriple(Point2D const &p1, Point2D const &p2, Point2D const &p3, Point2D const &q1, Point2D const &q2, Point2D const &q3)