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)) {}
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;
A class representing an angle.
AffineTransform makeAffineTransformFromTriple(Point2D const &p1, Point2D const &p2, Point2D const &p3, Point2D const &q1, Point2D const &q2, Point2D const &q3)
Extent< double, 2 > Extent2D
std::ostream & operator<<(std::ostream &os, lsst::geom::AffineTransform const &transform)
Point< double, 2 > Point2D