ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
|
Quaternion representation. More...
#include <quaternion.hpp>
Public Types | |
using | container = typename Utils::Array< T, 4 > |
using | pointer = typename container::pointer |
using | const_pointer = typename container::const_pointer |
using | value_type = typename container::value_type |
using | reference = typename container::reference |
Public Member Functions | |
void | normalize () |
Normalize the quaternion in place. | |
Quaternion< T > | normalized () const |
Retrieve a normalized copy of the quaternion. | |
value_type | operator[] (std::size_t i) const |
Element access (const). | |
reference | operator[] (std::size_t i) |
Element access (non const). | |
value_type | norm () const |
Retrieve the norm of the quaternion. | |
value_type | norm2 () const |
Retrieve the square of the norm of the quaternion. | |
constexpr pointer | data () |
Access to the underlying data (non const). | |
constexpr const_pointer | data () const noexcept |
Access to the underlying data (const). | |
Static Public Member Functions | |
static Quaternion< T > | identity () |
Construct an identity quaternion. | |
static Quaternion< T > | zero () |
Construct a zero quaternion. | |
Public Attributes | |
container | m_data |
Friends | |
class | boost::serialization::access |
Quaternion representation.
T | Element data type. |
Definition at line 57 of file quaternion.hpp.
using Utils::Quaternion< T >::const_pointer = typename container::const_pointer |
Definition at line 61 of file quaternion.hpp.
using Utils::Quaternion< T >::container = typename Utils::Array<T, 4> |
Definition at line 58 of file quaternion.hpp.
using Utils::Quaternion< T >::pointer = typename container::pointer |
Definition at line 60 of file quaternion.hpp.
using Utils::Quaternion< T >::reference = typename container::reference |
Definition at line 63 of file quaternion.hpp.
using Utils::Quaternion< T >::value_type = typename container::value_type |
Definition at line 62 of file quaternion.hpp.
|
inlineconstexpr |
Access to the underlying data (non const).
Definition at line 123 of file quaternion.hpp.
References Utils::Quaternion< T >::m_data.
|
inlineconstexprnoexcept |
Access to the underlying data (const).
Definition at line 129 of file quaternion.hpp.
References Utils::Quaternion< T >::m_data.
|
inlinestatic |
Construct an identity quaternion.
Definition at line 111 of file quaternion.hpp.
Referenced by propagate_omega_quat_particle().
|
inline |
Retrieve the norm of the quaternion.
Definition at line 100 of file quaternion.hpp.
|
inline |
Retrieve the square of the norm of the quaternion.
Definition at line 105 of file quaternion.hpp.
Referenced by calculate_vs_relate_to_params(), and define_Qdd().
|
inline |
Normalize the quaternion in place.
Definition at line 75 of file quaternion.hpp.
|
inline |
Retrieve a normalized copy of the quaternion.
Definition at line 81 of file quaternion.hpp.
Referenced by Utils::rotation_matrix().
|
inline |
Element access (non const).
i | Element index. |
i
. Definition at line 94 of file quaternion.hpp.
References Utils::Quaternion< T >::m_data.
|
inline |
Element access (const).
i | Element index. |
i
. Definition at line 88 of file quaternion.hpp.
References Utils::Quaternion< T >::m_data.
|
inlinestatic |
Construct a zero quaternion.
Definition at line 117 of file quaternion.hpp.
|
friend |
Definition at line 66 of file quaternion.hpp.
container Utils::Quaternion< T >::m_data |
Definition at line 59 of file quaternion.hpp.
Referenced by Utils::Quaternion< T >::data(), Utils::Quaternion< T >::data(), Utils::Quaternion< T >::operator[](), and Utils::Quaternion< T >::operator[]().