Celeritas  0.5.0-86+4a8eea4
List of all members
celeritas::Translation Class Reference

Apply a translation (no rotation). More...

#include <Translation.hh>

Type aliases

using StorageSpan = Span< real_type const, 3 >
 Transform type identifier.
 
static CELER_CONSTEXPR_FUNCTION TransformType transform_type ()
 Transform type identifier.
 
CELER_FUNCTION Translation ()
 Construct with an identity translation.
 
CELER_FUNCTION Translation (Real3 const &trans)
 Construct with the translation vector.
 
CELER_FUNCTION Translation (StorageSpan s)
 Construct inline from storage.
 
CELER_FORCEINLINE_FUNCTION Real3 const & translation () const
 Translation vector.
 
CELER_FUNCTION StorageSpan data () const
 Get a view to the data for type-deleted storage.
 
CELER_FUNCTION Real3 transform_up (Real3 const &pos) const
 Transform from daughter to parent.
 
CELER_FUNCTION Real3 transform_down (Real3 const &parent_pos) const
 Transform from parent to daughter.
 
CELER_FUNCTION Real3 const & rotate_up (Real3 const &d) const
 Rotate from daughter to parent (identity).
 
CELER_FUNCTION Real3 const & rotate_down (Real3 const &d) const
 Rotate from parent to daughter (identity).
 
Translation calc_inverse () const
 Calculate the inverse during preprocessing.
 

Detailed Description

Apply a translation (no rotation).

The input translation is specified by translating the daughter's coordinate into the parent.


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