| LSSTApplications
    20.0.0
    LSSTDataManagementBasePackage | 
 
 
 
Go to the documentation of this file.
   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) {}
 
  148     double applyX(
double x, 
double y) 
const noexcept { 
return _linear.
applyX(
x, 
y) + _translation.getX(); }
 
  149     double applyY(
double x, 
double y) 
const noexcept { 
return _linear.
applyY(
x, 
y) + _translation.getY(); }
 
  176     double &operator[](
int i) { 
return (i < 4) ? _linear[i] : _translation[i - 4]; }
 
  177     double operator[](
int i)
 const { 
return (i < 4) ? _linear[i] : _translation[i - 4]; }
 
  191         _linear += 
other._linear;
 
  192         _translation += 
other._translation;
 
  203         _linear -= 
other._linear;
 
  204         _translation -= 
other._translation;
 
  302 #endif  // !LSST_GEOM_AFFINE_TRANSFORM_H 
  
Point< double, 2 > Point2D
ItemVariant const  * other
A base class for image defects.
std::ostream & operator<<(std::ostream &os, lsst::geom::AffineTransform const &transform)
A class representing an angle.
Extent< double, 2 > Extent2D
AffineTransform makeAffineTransformFromTriple(Point2D const &p1, Point2D const &p2, Point2D const &p3, Point2D const &q1, Point2D const &q2, Point2D const &q3)