|
Celeritas 0.7-develop+c3a560a
|
Apply a translation (no rotation). More...
#include <Translation.hh>
Type aliases | |
| using | StorageSpan = LdgSpan< real_type const, 3 > |
| Transform type identifier. | |
| static constexpr TransformType | transform_type () |
| Transform type identifier. | |
| Translation () | |
| Construct with an identity translation. | |
| Translation (Real3 const &trans) | |
| Construct with the translation vector. | |
| Translation (StorageSpan s) | |
| Construct inline from storage. | |
| Real3 const & | translation () const |
| Translation vector. | |
| StorageSpan | data () const |
| Get a view to the data for type-deleted storage. | |
| Real3 | transform_up (Real3 const &pos) const |
| Transform from daughter to parent. | |
| Real3 | transform_down (Real3 const &parent_pos) const |
| Transform from parent to daughter. | |
| Real3 | rotate_up (Real3 const &d) const |
| Rotate from daughter to parent (identity). | |
| Real3 | rotate_down (Real3 const &d) const |
| Rotate from parent to daughter (identity). | |
| Translation | calc_inverse () const |
| Calculate the inverse during preprocessing. | |
| bool | operator== (Translation const &a, Translation const &b) |
| bool | operator!= (Translation const &a, Translation const &b) |
| Transform type identifier. | |
Apply a translation (no rotation).
The input translation is specified by translating the daughter's coordinate into the parent.
Rotate from parent to daughter (identity).
Return by value to match the transform interface and avoid exposing a reference to the input. Real3 is a small fixed-size value, and this force-inlined function lets the compiler eliminate the copy when possible.
Rotate from daughter to parent (identity).
Return by value to match the transform interface and avoid exposing a reference to the input. Real3 is a small fixed-size value, and this force-inlined function lets the compiler eliminate the copy when possible.
|
friend |
Host-only comparators