|
wuzp
Wrong Unit? Zero Points! Compile-time checks for units, coordinate systems and points vs. vectors.
|
The composition lhs * rhs of two transformations, which applies rhs first, then lhs: (lhs * rhs).transform(x) is lhs.transform(rhs.transform(x)), like the product of their matrices. More...
#include <wuzp/trafo/traits.hpp>
The composition lhs * rhs of two transformations, which applies rhs first, then lhs: (lhs * rhs).transform(x) is lhs.transform(rhs.transform(x)), like the product of their matrices.
static auto compose(const LhsT_&, const RhsT_&) returns it. The operators check the coordinate systems first (see ActiveTransformation.hpp and PassiveTransformation.hpp). It is specialized where the result is again a transformation of wuzp: linear transformations, including rotations and Lorentz transformations, with linear transformations (a rotation with a rotation is a rotation, a Lorentz transformation with a Lorentz transformation a Lorentz transformation), translations with translations, proper rigid transformations, rotations and translations with each other, except a translation with a translation, into proper rigid transformations, and Jacobians with Jacobians and with passive linear transformations, including rotations and Lorentz transformations, into Jacobians, by the chain rule. Every other combination is rejected, e.g. a translation with a linear transformation that is not a rotation, whose composition is affine but not rigid, a Jacobian with a translation, or an active with a passive transformation.
Definition at line 39 of file traits.hpp.