|
wuzp
Wrong Unit? Zero Points! Compile-time checks for units, coordinate systems and points vs. vectors.
|
The base class of all transformations: linear transformations, e.g. rotations and Lorentz transformations, translations, proper rigid transformations (first rotation, then translation) and Jacobians. More...
#include <wuzp/trafo/Transformation.hpp>
Inherited by wuzp::internal::Crtp< DerivedT_, Transformation< DerivedT_ > >.
Protected Member Functions | |
| ~Transformation ()=default | |
The base class of all transformations: linear transformations, e.g. rotations and Lorentz transformations, translations, proper rigid transformations (first rotation, then translation) and Jacobians.
An active transformation (ActiveTransformation) moves objects within its coordinate system, a passive transformation (PassiveTransformation) expresses the objects of the coordinate system From in the coordinate system To. A Lorentz transformation is the passive linear transformation of spacetime vectors between two inertial frames, and a Jacobian the derivative of a change of coordinates between two coordinate systems, possibly of different dimensions, which pushes forward vectors and pulls back covectors (see Jacobian). Transformations transform tensors with transform(), compose with operator* (see CompositionTraits) and have an inverse(). The destructor is protected and not virtual: transformations are values, which are never deleted through a pointer to this class, so they need no virtual table, which would make every transformation larger. It is a class template of the transformation DerivedT_ that derives from it, so that every transformation has an empty base of its own: a proper rigid transformation and its rotation, its first member, would otherwise both have the empty base Transformation, and two objects of the same type cannot have the same address, so the rotation would start after the transformation's empty base, which would make the transformation larger than its members (https://en.cppreference.com/w/cpp/language/ebo). AnyTransformation tells whether a type is a transformation.
Definition at line 23 of file Transformation.hpp.
|
protecteddefault |