![]() |
Chemical Data Processing Library C++ API - Version 1.4.0
|
Per-component functor returning the multiplicative inverse \( \overline{e} / \|e\|^2 \) of a quaternion expression (n2 is the precomputed squared norm). More...
#include <Functional.hpp>
Inheritance diagram for CDPL::Math::QuaternionInverse< Q, T >:Public Types | |
| typedef Scalar2QuaternionBinaryFunctor< Q, T >::Argument2Type | Argument2Type |
| typedef Scalar2QuaternionBinaryFunctor< Q, T >::ResultType | ResultType |
Public Types inherited from CDPL::Math::Scalar2QuaternionBinaryFunctor< Q, T > | |
| typedef CommonType< typename Q::ValueType, T >::Type | ResultType |
| The component result type (common type of the quaternion's element value type and the scalar). More... | |
| typedef const T & | Argument2Type |
| The second (scalar) argument type. More... | |
Static Public Member Functions | |
| template<typename E > | |
| static ResultType | applyC1 (const QuaternionExpression< E > &e, Argument2Type n2) |
Returns the C1 (real) component of the multiplicative inverse \( e^{-1} = \overline{e} / \|e\|^2 \). More... | |
| template<typename E > | |
| static ResultType | applyC2 (const QuaternionExpression< E > &e, Argument2Type n2) |
Returns the C2 component of the multiplicative inverse \( e^{-1} \). More... | |
| template<typename E > | |
| static ResultType | applyC3 (const QuaternionExpression< E > &e, Argument2Type n2) |
Returns the C3 component of the multiplicative inverse \( e^{-1} \). More... | |
| template<typename E > | |
| static ResultType | applyC4 (const QuaternionExpression< E > &e, Argument2Type n2) |
Returns the C4 component of the multiplicative inverse \( e^{-1} \). More... | |
Per-component functor returning the multiplicative inverse \( \overline{e} / \|e\|^2 \) of a quaternion expression (n2 is the precomputed squared norm).
| Q | The quaternion expression type. |
| T | The precomputed-norm scalar type. |
| typedef Scalar2QuaternionBinaryFunctor<Q, T>::Argument2Type CDPL::Math::QuaternionInverse< Q, T >::Argument2Type |
| typedef Scalar2QuaternionBinaryFunctor<Q, T>::ResultType CDPL::Math::QuaternionInverse< Q, T >::ResultType |
|
inlinestatic |
Returns the C1 (real) component of the multiplicative inverse \( e^{-1} = \overline{e} / \|e\|^2 \).
| E | The quaternion expression type. |
| e | The quaternion expression. |
| n2 | The precomputed squared norm \( \|e\|^2 \). |
e.getC1() / n2.
|
inlinestatic |
Returns the C2 component of the multiplicative inverse \( e^{-1} \).
| E | The quaternion expression type. |
| e | The quaternion expression. |
| n2 | The precomputed squared norm \( \|e\|^2 \). |
-e.getC2() / n2.
|
inlinestatic |
Returns the C3 component of the multiplicative inverse \( e^{-1} \).
| E | The quaternion expression type. |
| e | The quaternion expression. |
| n2 | The precomputed squared norm \( \|e\|^2 \). |
-e.getC3() / n2.
|
inlinestatic |
Returns the C4 component of the multiplicative inverse \( e^{-1} \).
| E | The quaternion expression type. |
| e | The quaternion expression. |
| n2 | The precomputed squared norm \( \|e\|^2 \). |
-e.getC4() / n2.