#include <quaternion_expr.h>
Public Types | |
enum | { array_size = ExprT::array_size } |
Record result size as an enum. More... | |
typedef cml::et::not_assignable_tag | assignable_tag |
typedef result_type::cross_type | cross_type |
typedef ExprT::expr_ary | expr_ary |
typedef expr_type | expr_const_reference |
typedef expr_traits::const_reference | expr_reference |
typedef ExprTraits< ExprT > | expr_traits |
typedef QuaternionXpr< ExprT > | expr_type |
typedef vector_type::subvector_type | imaginary_type |
typedef result_type::order_type | order_type |
typedef quaternion_result_tag | result_tag |
typedef expr_traits::result_type | result_type |
typedef ExprT::size_tag | size_tag |
typedef result_type::temporary_type | temporary_type |
typedef ExprT::value_type | value_type |
typedef result_type::vector_type | vector_type |
Public Member Functions | |
temporary_type | exp (value_type tolerance=epsilon< value_type >::placeholder()) const |
Return the result of the exponential function as applied to this expression. | |
expr_reference | expression () const |
Return reference to contained expression. | |
imaginary_type | imaginary () const |
Return the vector part of the expression. | |
value_type | length () const |
Return the quaternion length. | |
value_type | length_squared () const |
Return square of the quaternion length. | |
temporary_type | log (value_type tolerance=epsilon< value_type >::placeholder()) const |
Return the log of the expression. | |
value_type | norm () const |
Return the Cayley norm of the expression. | |
temporary_type | normalize () const |
Return the result as a normalized quaternion. | |
value_type | operator[] (size_t i) const |
Compute value at index i of the result quaternion. | |
QuaternionXpr (const expr_type &e) | |
Copy constructor. | |
QuaternionXpr (expr_reference expr) | |
Construct from the subexpression to store. | |
value_type | real () const |
Return the real part of the expression. | |
size_t | size () const |
Return size of this expression (same as subexpression's size). | |
Protected Attributes | |
expr_reference | m_expr |
Private Member Functions | |
expr_type & | operator= (const expr_type &) |
Definition at line 30 of file quaternion_expr.h.
typedef cml::et::not_assignable_tag cml::et::QuaternionXpr< ExprT >::assignable_tag |
Definition at line 62 of file quaternion_expr.h.
typedef result_type::cross_type cml::et::QuaternionXpr< ExprT >::cross_type |
Definition at line 71 of file quaternion_expr.h.
typedef ExprT::expr_ary cml::et::QuaternionXpr< ExprT >::expr_ary |
Definition at line 37 of file quaternion_expr.h.
typedef expr_type cml::et::QuaternionXpr< ExprT >::expr_const_reference |
Definition at line 40 of file quaternion_expr.h.
typedef expr_traits::const_reference cml::et::QuaternionXpr< ExprT >::expr_reference |
Definition at line 50 of file quaternion_expr.h.
typedef ExprTraits<ExprT> cml::et::QuaternionXpr< ExprT >::expr_traits |
Definition at line 47 of file quaternion_expr.h.
typedef QuaternionXpr<ExprT> cml::et::QuaternionXpr< ExprT >::expr_type |
Definition at line 34 of file quaternion_expr.h.
typedef vector_type::subvector_type cml::et::QuaternionXpr< ExprT >::imaginary_type |
Definition at line 59 of file quaternion_expr.h.
typedef result_type::order_type cml::et::QuaternionXpr< ExprT >::order_type |
Definition at line 68 of file quaternion_expr.h.
typedef quaternion_result_tag cml::et::QuaternionXpr< ExprT >::result_tag |
Definition at line 43 of file quaternion_expr.h.
typedef expr_traits::result_type cml::et::QuaternionXpr< ExprT >::result_type |
Definition at line 53 of file quaternion_expr.h.
typedef ExprT::size_tag cml::et::QuaternionXpr< ExprT >::size_tag |
Definition at line 44 of file quaternion_expr.h.
typedef result_type::temporary_type cml::et::QuaternionXpr< ExprT >::temporary_type |
Definition at line 65 of file quaternion_expr.h.
typedef ExprT::value_type cml::et::QuaternionXpr< ExprT >::value_type |
Definition at line 42 of file quaternion_expr.h.
typedef result_type::vector_type cml::et::QuaternionXpr< ExprT >::vector_type |
Definition at line 56 of file quaternion_expr.h.
anonymous enum |
cml::et::QuaternionXpr< ExprT >::QuaternionXpr | ( | expr_reference | expr | ) | [inline, explicit] |
cml::et::QuaternionXpr< ExprT >::QuaternionXpr | ( | const expr_type & | e | ) | [inline] |
temporary_type cml::et::QuaternionXpr< ExprT >::exp | ( | value_type | tolerance = epsilon<value_type>::placeholder() |
) | const [inline] |
Return the result of the exponential function as applied to this expression.
Definition at line 123 of file quaternion_expr.h.
References cml::et::QuaternionXpr< ExprT >::m_expr.
expr_reference cml::et::QuaternionXpr< ExprT >::expression | ( | ) | const [inline] |
Return reference to contained expression.
Definition at line 143 of file quaternion_expr.h.
References cml::et::QuaternionXpr< ExprT >::m_expr.
imaginary_type cml::et::QuaternionXpr< ExprT >::imaginary | ( | ) | const [inline] |
Return the vector part of the expression.
Definition at line 88 of file quaternion_expr.h.
References cml::et::QuaternionXpr< ExprT >::m_expr.
Referenced by cml::imaginary().
value_type cml::et::QuaternionXpr< ExprT >::length | ( | ) | const [inline] |
Return the quaternion length.
Definition at line 103 of file quaternion_expr.h.
References cml::et::QuaternionXpr< ExprT >::m_expr.
value_type cml::et::QuaternionXpr< ExprT >::length_squared | ( | ) | const [inline] |
Return square of the quaternion length.
Definition at line 98 of file quaternion_expr.h.
References cml::et::QuaternionXpr< ExprT >::m_expr.
temporary_type cml::et::QuaternionXpr< ExprT >::log | ( | value_type | tolerance = epsilon<value_type>::placeholder() |
) | const [inline] |
Return the log of the expression.
Definition at line 113 of file quaternion_expr.h.
References cml::et::QuaternionXpr< ExprT >::m_expr.
value_type cml::et::QuaternionXpr< ExprT >::norm | ( | ) | const [inline] |
Return the Cayley norm of the expression.
Definition at line 93 of file quaternion_expr.h.
References cml::et::QuaternionXpr< ExprT >::m_expr.
temporary_type cml::et::QuaternionXpr< ExprT >::normalize | ( | ) | const [inline] |
Return the result as a normalized quaternion.
Definition at line 108 of file quaternion_expr.h.
References cml::et::QuaternionXpr< ExprT >::m_expr.
expr_type& cml::et::QuaternionXpr< ExprT >::operator= | ( | const expr_type & | ) | [private] |
value_type cml::et::QuaternionXpr< ExprT >::operator[] | ( | size_t | i | ) | const [inline] |
Compute value at index i of the result quaternion.
Definition at line 130 of file quaternion_expr.h.
References cml::et::QuaternionXpr< ExprT >::m_expr.
value_type cml::et::QuaternionXpr< ExprT >::real | ( | ) | const [inline] |
Return the real part of the expression.
Definition at line 83 of file quaternion_expr.h.
References cml::et::QuaternionXpr< ExprT >::m_expr.
Referenced by cml::real().
size_t cml::et::QuaternionXpr< ExprT >::size | ( | ) | const [inline] |
Return size of this expression (same as subexpression's size).
Definition at line 138 of file quaternion_expr.h.
References cml::et::QuaternionXpr< ExprT >::m_expr.
Referenced by cml::et::ExprTraits< QuaternionXpr< ExprT > >::size().
expr_reference cml::et::QuaternionXpr< ExprT >::m_expr [protected] |
Definition at line 157 of file quaternion_expr.h.
Referenced by cml::et::QuaternionXpr< ExprT >::exp(), cml::et::QuaternionXpr< ExprT >::expression(), cml::et::QuaternionXpr< ExprT >::imaginary(), cml::et::QuaternionXpr< ExprT >::length(), cml::et::QuaternionXpr< ExprT >::length_squared(), cml::et::QuaternionXpr< ExprT >::log(), cml::et::QuaternionXpr< ExprT >::norm(), cml::et::QuaternionXpr< ExprT >::normalize(), cml::et::QuaternionXpr< ExprT >::operator[](), cml::et::QuaternionXpr< ExprT >::real(), and cml::et::QuaternionXpr< ExprT >::size().