wuzp
Wrong Unit? Zero Points! Compile-time checks for units, coordinate systems and points vs. vectors.
Loading...
Searching...
No Matches
wuzp::CompositionTraits< LhsT_, RhsT_ > Struct Template Reference

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>

Detailed Description

template<typename LhsT_, typename RhsT_>
struct wuzp::CompositionTraits< LhsT_, RhsT_ >

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.


The documentation for this struct was generated from the following file: