8#if MR_COMPILING_ANY_BINDINGS
27 using T =
typename V::ValueType;
28 using M =
typename V::MatrixType;
49 [[nodiscard]]
constexpr V
operator() (
const V & x )
const noexcept {
return A * x +
b; }
52 [[nodiscard]]
constexpr V
linearOnly(
const V & x )
const noexcept {
return A * x; }
59 {
return { u.
A * v.A, u.A * v.b + u.b }; }
64 return a.
A ==
b.A && a.
b ==
b.b;
75 return s << xf.
A << xf.
b;
80 return s >> xf.
A >> xf.
b;
92 res.b = -( res.A * b );
#define MR_REQUIRES_IF_SUPPORTED(...)
Definition MRMacros.h:34
typename V::ValueType T
Definition MRAffineXf.h:27
friend bool operator!=(const AffineXf< V > &a, const AffineXf< V > &b)
Definition MRAffineXf.h:68
static constexpr AffineXf linear(const M &A) noexcept
creates linear-only transformation (without translation)
Definition MRAffineXf.h:44
static constexpr AffineXf xfAround(const M &A, const V &stable) noexcept
creates transformation with given linear part with given stable point
Definition MRAffineXf.h:46
friend bool operator==(const AffineXf< V > &a, const AffineXf< V > &b)
Definition MRAffineXf.h:62
constexpr V operator()(const V &x) const noexcept
application of the transformation to a point
Definition MRAffineXf.h:49
typename V::MatrixType M
Definition MRAffineXf.h:28
friend std::istream & operator>>(std::istream &s, AffineXf &xf)
Definition MRAffineXf.h:78
constexpr AffineXf() noexcept=default
V b
Definition MRAffineXf.h:31
M A
Definition MRAffineXf.h:30
MR_REQUIRES_IF_SUPPORTED(!std::is_same_v< U, V >) const expr explicit AffineXf(const AffineXf< U > &xf) noexcept
Definition MRAffineXf.h:38
static constexpr AffineXf translation(const V &b) noexcept
creates translation-only transformation (with identity linear component)
Definition MRAffineXf.h:42
constexpr V linearOnly(const V &x) const noexcept
Definition MRAffineXf.h:52
friend std::ostream & operator<<(std::ostream &s, const AffineXf &xf)
Definition MRAffineXf.h:73
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Definition MRAffineXf.h:26