Utility functions to return rotations matrics. More...
Functions | |
| template<bool is_ad = false> | |
| GenericRealTensorValue< is_ad > | rotVecToZ (GenericRealVectorValue< is_ad > vec) |
| provides a rotation matrix that will rotate the vector vec to the z axis (the "2" direction) More... | |
| template<bool is_ad = false> | |
| GenericRealTensorValue< is_ad > | rotVec1ToVec2 (GenericRealVectorValue< is_ad > vec1, GenericRealVectorValue< is_ad > vec2) |
| provides a rotation matrix that will rotate the vector vec1 to vec2 More... | |
| template<bool is_ad = false> | |
| GenericRealTensorValue< is_ad > | rotVec2DToX (const GenericRealVectorValue< is_ad > &vec) |
| provides a rotation matrix that will rotate the vector vec1 to the [1,0,0], assuming vec1[2]==0 More... | |
| template<bool is_ad = false> | |
| GenericRealTensorValue< is_ad > | rodriguesRotationMatrix (GenericRealVectorValue< is_ad > vec1, GenericRealVectorValue< is_ad > vec2) |
| Provides rotatiom matrix for rotating from vec1 to vec2 using Rodrigues' rotation forumula. More... | |
Utility functions to return rotations matrics.
| GenericRealTensorValue<is_ad> RotationMatrix::rodriguesRotationMatrix | ( | GenericRealVectorValue< is_ad > | vec1, |
| GenericRealVectorValue< is_ad > | vec2 | ||
| ) |
Provides rotatiom matrix for rotating from vec1 to vec2 using Rodrigues' rotation forumula.
See https://en.wikipedia.org/wiki/Rodrigues%27_rotation_formula#Matrix_notation
| vec1 | starting vector – must have 3 components! |
| vec2 | ending vector – must have 3 components! |
Definition at line 96 of file RotationMatrix.h.
| GenericRealTensorValue<is_ad> RotationMatrix::rotVec1ToVec2 | ( | GenericRealVectorValue< is_ad > | vec1, |
| GenericRealVectorValue< is_ad > | vec2 | ||
| ) |
provides a rotation matrix that will rotate the vector vec1 to vec2
Definition at line 66 of file RotationMatrix.h.
| GenericRealTensorValue<is_ad> RotationMatrix::rotVec2DToX | ( | const GenericRealVectorValue< is_ad > & | vec | ) |
provides a rotation matrix that will rotate the vector vec1 to the [1,0,0], assuming vec1[2]==0
Definition at line 77 of file RotationMatrix.h.
| GenericRealTensorValue<is_ad> RotationMatrix::rotVecToZ | ( | GenericRealVectorValue< is_ad > | vec | ) |
provides a rotation matrix that will rotate the vector vec to the z axis (the "2" direction)
Definition at line 24 of file RotationMatrix.h.
Referenced by SolutionUserObjectBase::SolutionUserObjectBase().
1.8.14