SpECTRE
v2025.03.17
|
Spatial rotation in three dimensions using Euler angles. More...
#include <Rotation.hpp>
Public Member Functions | |
Rotation (double rotation_about_z, double rotation_about_rotated_y, double rotation_about_rotated_z) | |
Constructor. More... | |
Rotation (const Rotation &)=default | |
Rotation & | operator= (const Rotation &)=default |
Rotation (Rotation &&)=default | |
Rotation & | operator= (Rotation &&)=default |
template<typename T > | |
std::array< tt::remove_cvref_wrap_t< T >, 3 > | operator() (const std::array< T, 3 > &source_coords) const |
std::optional< std::array< double, 3 > > | inverse (const std::array< double, 3 > &target_coords) const |
template<typename T > | |
tnsr::Ij< tt::remove_cvref_wrap_t< T >, 3, Frame::NoFrame > | jacobian (const std::array< T, 3 > &source_coords) const |
template<typename T > | |
tnsr::Ij< tt::remove_cvref_wrap_t< T >, 3, Frame::NoFrame > | inv_jacobian (const std::array< T, 3 > &source_coords) const |
void | pup (PUP::er &p) |
bool | is_identity () const |
Static Public Attributes | |
static constexpr size_t | dim = 3 |
Friends | |
bool | operator== (const Rotation< 3 > &lhs, const Rotation< 3 > &rhs) |
Spatial rotation in three dimensions using Euler angles.
Rotation angles should be specified in degrees. First rotation
The formula for the mapping is:
domain::CoordinateMaps::Rotation< 3 >::Rotation | ( | double | rotation_about_z, |
double | rotation_about_rotated_y, | ||
double | rotation_about_rotated_z | ||
) |
Constructor.
rotation_about_z | the angle |
rotation_about_rotated_y | the angle |
rotation_about_rotated_z | the angle |