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; }
58 res.
b = -( res.
A *
b );
65 {
return { u.
A * v.
A, u.
A * v.
b + u.
b }; }
70 return a.
A ==
b.A && a.
b ==
b.b;
81 return s << xf.
A << xf.
b;
86 return s >> xf.
A >> xf.
b;
#define MR_REQUIRES_IF_SUPPORTED(...)
Definition MRMacros.h:33
bool operator==(const Allocator< T > &, const Allocator< U > &) noexcept
Definition MRAllocator.h:95
typename V::ValueType T
Definition MRAffineXf.h:27
struct
Definition MRMeshFwd.h:189
static constexpr AffineXf linear(const M &A) noexcept
creates linear-only transformation (without translation)
Definition MRAffineXf.h:44
bool operator!=(const Color &a, const Color &b)
Definition MRColor.h:107
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
typename V::MatrixType M
Definition MRAffineXf.h:28
friend std::istream & operator>>(std::istream &s, AffineXf &xf)
Definition MRAffineXf.h:84
Color operator*(float a, const Color &b)
Definition MRColor.h:122
constexpr AffineXf inverse() const noexcept
computes inverse transformation
Definition MRAffineXf.h:54
constexpr AffineXf() noexcept=default
Vector3< T > b
Definition MRAffineXf.h:31
M A
Definition MRAffineXf.h:30
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:79
Only strictly necessary for the bindings (to make MR::MeshIntersectionResult a complete type).
Definition MRCameraOrientationPlugin.h:8