
Public Types | |
| enum | { Flags = Eigen::internal::traits<Derived>::Flags } |
| typedef internal::traits < Derived >::Scalar | Scalar |
| the scalar type of the coefficients | |
| typedef NumTraits< Scalar >::Real | RealScalar |
| typedef internal::traits < Derived >::Coefficients | Coefficients |
| typedef Matrix< Scalar, 3, 1 > | Vector3 |
| the type of a 3D vector | |
| typedef Matrix< Scalar, 3, 3 > | Matrix3 |
| the equivalent rotation matrix type | |
| typedef AngleAxis< Scalar > | AngleAxisType |
| the equivalent angle-axis type | |
| enum | |
| typedef Matrix< Scalar, Dim, Dim > | RotationMatrixType |
| corresponding linear transformation matrix type | |
| typedef Matrix< Scalar, Dim, 1 > | VectorType |
Public Member Functions | |
| Scalar | x () const |
| Scalar | y () const |
| Scalar | z () const |
| Scalar | w () const |
| Scalar & | x () |
| Scalar & | y () |
| Scalar & | z () |
| Scalar & | w () |
| const VectorBlock< const Coefficients, 3 > | vec () const |
| VectorBlock< Coefficients, 3 > | vec () |
| const internal::traits < Derived >::Coefficients & | coeffs () const |
| internal::traits< Derived > ::Coefficients & | coeffs () |
| EIGEN_STRONG_INLINE QuaternionBase< Derived > & | operator= (const QuaternionBase< Derived > &other) |
| template<class OtherDerived > | |
| EIGEN_STRONG_INLINE Derived & | operator= (const QuaternionBase< OtherDerived > &other) |
| Derived & | operator= (const AngleAxisType &aa) |
Set *this from an angle-axis aa and returns a reference to *this. | |
| template<class OtherDerived > | |
| Derived & | operator= (const MatrixBase< OtherDerived > &m) |
| QuaternionBase & | setIdentity () |
| Scalar | squaredNorm () const |
| Scalar | norm () const |
| void | normalize () |
Normalizes the quaternion *this. | |
| Quaternion< Scalar > | normalized () const |
| template<class OtherDerived > | |
| Scalar | dot (const QuaternionBase< OtherDerived > &other) const |
| template<class OtherDerived > | |
| Scalar | angularDistance (const QuaternionBase< OtherDerived > &other) const |
| Matrix3 | toRotationMatrix () const |
| Convert the quaternion to a 3x3 rotation matrix. | |
| template<typename Derived1 , typename Derived2 > | |
| Derived & | setFromTwoVectors (const MatrixBase< Derived1 > &a, const MatrixBase< Derived2 > &b) |
Sets *this to be a quaternion representing a rotation between the two arbitrary vectors a and b. | |
| template<class OtherDerived > | |
| EIGEN_STRONG_INLINE Quaternion < Scalar > | operator* (const QuaternionBase< OtherDerived > &q) const |
| template<class OtherDerived > | |
| EIGEN_STRONG_INLINE Derived & | operator*= (const QuaternionBase< OtherDerived > &q) |
| Quaternion< Scalar > | inverse () const |
| Quaternion< Scalar > | conjugate () const |
| template<class OtherDerived > | |
| Quaternion< Scalar > | slerp (Scalar t, const QuaternionBase< OtherDerived > &other) const |
| template<class OtherDerived > | |
| bool | isApprox (const QuaternionBase< OtherDerived > &other, RealScalar prec=NumTraits< Scalar >::dummy_precision()) const |
| EIGEN_STRONG_INLINE Vector3 | _transformVector (Vector3 v) const |
| return the result vector of v through the rotation | |
| template<typename NewScalarType > | |
| internal::cast_return_type < Derived, Quaternion < NewScalarType > >::type | cast () const |
| template<class MatrixDerived > | |
| Derived & | operator= (const MatrixBase< MatrixDerived > &xpr) |
Set *this from the expression xpr: | |
| const Derived & | derived () const |
| Derived & | derived () |
| RotationMatrixType | matrix () const |
| Transform< Scalar, Dim, Isometry > | operator* (const Translation< Scalar, Dim > &t) const |
| RotationMatrixType | operator* (const UniformScaling< Scalar > &s) const |
| EIGEN_STRONG_INLINE internal::rotation_base_generic_product_selector < Derived, OtherDerived, OtherDerived::IsVectorAtCompileTime > ::ReturnType | operator* (const EigenBase< OtherDerived > &e) const |
| Transform< Scalar, Dim, Mode > | operator* (const Transform< Scalar, Dim, Mode, Options > &t) const |
| VectorType | _transformVector (const OtherVectorType &v) const |
Static Public Member Functions | |
| static Quaternion< Scalar > | Identity () |
Private Types | |
| typedef RotationBase< Derived, 3 > | Base |
Friends | |
| RotationMatrixType | operator* (const EigenBase< OtherDerived > &l, const Derived &r) |
| Transform< Scalar, Dim, Affine > | operator* (const DiagonalMatrix< Scalar, Dim > &l, const Derived &r) |
the equivalent angle-axis type
Reimplemented in Eigen::Quaternion.
typedef RotationBase<Derived, 3> Eigen::QuaternionBase::Base [private] |
| typedef internal::traits<Derived>::Coefficients Eigen::QuaternionBase::Coefficients |
| typedef Matrix<Scalar,3,3> Eigen::QuaternionBase::Matrix3 |
| typedef NumTraits<Scalar>::Real Eigen::QuaternionBase::RealScalar |
typedef Matrix<Scalar,Dim,Dim> Eigen::RotationBase::RotationMatrixType [inherited] |
| typedef internal::traits<Derived>::Scalar Eigen::QuaternionBase::Scalar |
the scalar type of the coefficients
Reimplemented from Eigen::RotationBase< Derived, 3 >.
Reimplemented in Eigen::Map< Quaternion< _Scalar >, _Options >, Eigen::Map< const Quaternion< _Scalar >, _Options >, and Eigen::Quaternion.
| typedef Matrix<Scalar,3,1> Eigen::QuaternionBase::Vector3 |
typedef Matrix<Scalar,Dim,1> Eigen::RotationBase::VectorType [inherited] |
| VectorType Eigen::RotationBase::_transformVector | ( | const OtherVectorType & | v | ) | const [inline, inherited] |
| EIGEN_STRONG_INLINE QuaternionBase< Derived >::Vector3 Eigen::QuaternionBase::_transformVector | ( | Vector3 | v | ) | const |
return the result vector of v through the rotation
Rotation of a vector by a quaternion.
| internal::traits< Derived >::Scalar Eigen::QuaternionBase::angularDistance | ( | const QuaternionBase< OtherDerived > & | other | ) | const [inline] |
| internal::cast_return_type<Derived,Quaternion<NewScalarType> >::type Eigen::QuaternionBase::cast | ( | ) | const [inline] |
| const internal::traits<Derived>::Coefficients& Eigen::QuaternionBase::coeffs | ( | ) | const [inline] |
Reimplemented in Eigen::Map< Quaternion< _Scalar >, _Options >, Eigen::Map< const Quaternion< _Scalar >, _Options >, and Eigen::Quaternion.
| internal::traits<Derived>::Coefficients& Eigen::QuaternionBase::coeffs | ( | ) | [inline] |
Reimplemented in Eigen::Map< Quaternion< _Scalar >, _Options >, and Eigen::Quaternion.
| Quaternion< typename internal::traits< Derived >::Scalar > Eigen::QuaternionBase::conjugate | ( | ) | const [inline] |
| const Derived& Eigen::RotationBase::derived | ( | ) | const [inline, inherited] |
| Derived& Eigen::RotationBase::derived | ( | ) | [inline, inherited] |
| Scalar Eigen::QuaternionBase::dot | ( | const QuaternionBase< OtherDerived > & | other | ) | const [inline] |
*this and other Geometrically speaking, the dot product of two unit quaternions corresponds to the cosine of half the angle between the two rotations. | static Quaternion<Scalar> Eigen::QuaternionBase::Identity | ( | ) | [inline, static] |
| Quaternion< typename internal::traits< Derived >::Scalar > Eigen::QuaternionBase::inverse | ( | ) | const [inline] |
*this Note that in most cases, i.e., if you simply want the opposite rotation, and/or the quaternion is normalized, then it is enough to use the conjugate.Reimplemented from Eigen::RotationBase< Derived, 3 >.
| bool Eigen::QuaternionBase::isApprox | ( | const QuaternionBase< OtherDerived > & | other, |
| RealScalar | prec = NumTraits<Scalar>::dummy_precision() |
||
| ) | const [inline] |
true if *this is approximately equal to other, within the precision determined by prec.| RotationMatrixType Eigen::RotationBase::matrix | ( | ) | const [inline, inherited] |
| Scalar Eigen::QuaternionBase::norm | ( | ) | const [inline] |
| void Eigen::QuaternionBase::normalize | ( | ) | [inline] |
Normalizes the quaternion *this.
| Quaternion<Scalar> Eigen::QuaternionBase::normalized | ( | ) | const [inline] |
*this | Transform<Scalar,Dim,Isometry> Eigen::RotationBase::operator* | ( | const Translation< Scalar, Dim > & | t | ) | const [inline, inherited] |
| RotationMatrixType Eigen::RotationBase::operator* | ( | const UniformScaling< Scalar > & | s | ) | const [inline, inherited] |
| EIGEN_STRONG_INLINE internal::rotation_base_generic_product_selector<Derived,OtherDerived,OtherDerived::IsVectorAtCompileTime>::ReturnType Eigen::RotationBase::operator* | ( | const EigenBase< OtherDerived > & | e | ) | const [inline, inherited] |
| EIGEN_STRONG_INLINE Quaternion< typename internal::traits< Derived >::Scalar > Eigen::QuaternionBase::operator* | ( | const QuaternionBase< OtherDerived > & | other | ) | const |
| EIGEN_STRONG_INLINE Derived & Eigen::QuaternionBase::operator*= | ( | const QuaternionBase< OtherDerived > & | other | ) |
| EIGEN_STRONG_INLINE QuaternionBase< Derived > & Eigen::QuaternionBase::operator= | ( | const QuaternionBase< Derived > & | other | ) |
| EIGEN_STRONG_INLINE Derived & Eigen::QuaternionBase::operator= | ( | const QuaternionBase< OtherDerived > & | other | ) |
| EIGEN_STRONG_INLINE Derived & Eigen::QuaternionBase::operator= | ( | const AngleAxisType & | aa | ) |
| Derived& Eigen::QuaternionBase::operator= | ( | const MatrixBase< OtherDerived > & | m | ) |
| Derived& Eigen::QuaternionBase::operator= | ( | const MatrixBase< MatrixDerived > & | xpr | ) | [inline] |
| Derived & Eigen::QuaternionBase::setFromTwoVectors | ( | const MatrixBase< Derived1 > & | a, |
| const MatrixBase< Derived2 > & | b | ||
| ) | [inline] |
Sets *this to be a quaternion representing a rotation between the two arbitrary vectors a and b.
In other words, the built rotation represent a rotation sending the line of direction a to the line of direction b, both lines passing through the origin.
*this.Note that the two input vectors do not have to be normalized, and do not need to have the same norm.
| QuaternionBase& Eigen::QuaternionBase::setIdentity | ( | ) | [inline] |
| Quaternion< typename internal::traits< Derived >::Scalar > Eigen::QuaternionBase::slerp | ( | Scalar | t, |
| const QuaternionBase< OtherDerived > & | other | ||
| ) | const |
*this t in [0;1] see http://en.wikipedia.org/wiki/Slerp*this and other at the parameter t | Scalar Eigen::QuaternionBase::squaredNorm | ( | ) | const [inline] |
| QuaternionBase< Derived >::Matrix3 Eigen::QuaternionBase::toRotationMatrix | ( | void | ) | const [inline] |
Convert the quaternion to a 3x3 rotation matrix.
The quaternion is required to be normalized, otherwise the result is undefined.
Reimplemented from Eigen::RotationBase< Derived, 3 >.
| const VectorBlock<const Coefficients,3> Eigen::QuaternionBase::vec | ( | ) | const [inline] |
| VectorBlock<Coefficients,3> Eigen::QuaternionBase::vec | ( | ) | [inline] |
| Scalar Eigen::QuaternionBase::w | ( | ) | const [inline] |
| Scalar& Eigen::QuaternionBase::w | ( | ) | [inline] |
| Scalar Eigen::QuaternionBase::x | ( | ) | const [inline] |
| Scalar& Eigen::QuaternionBase::x | ( | ) | [inline] |
| Scalar Eigen::QuaternionBase::y | ( | ) | const [inline] |
| Scalar& Eigen::QuaternionBase::y | ( | ) | [inline] |
| Scalar Eigen::QuaternionBase::z | ( | ) | const [inline] |
| Scalar& Eigen::QuaternionBase::z | ( | ) | [inline] |
| RotationMatrixType operator* | ( | const EigenBase< OtherDerived > & | l, |
| const Derived & | r | ||
| ) | [friend, inherited] |
| Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Thu Oct 13 21:25:36 UTC 2011 |