|
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR CoeffReturnType | x () const |
|
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR CoeffReturnType | y () const |
|
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR CoeffReturnType | z () const |
|
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR CoeffReturnType | w () const |
|
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR NonConstCoeffReturnType | x () |
|
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR NonConstCoeffReturnType | y () |
|
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR NonConstCoeffReturnType | z () |
|
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR NonConstCoeffReturnType | w () |
|
EIGEN_DEVICE_FUNC const VectorBlock< const Coefficients, 3 > | vec () const |
|
EIGEN_DEVICE_FUNC VectorBlock< Coefficients, 3 > | vec () |
|
EIGEN_DEVICE_FUNC const internal::traits< Derived >::Coefficients & | coeffs () const |
|
EIGEN_DEVICE_FUNC internal::traits< Derived >::Coefficients & | coeffs () |
|
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE QuaternionBase< Derived > & | operator= (const QuaternionBase< Derived > &other) |
|
template<class OtherDerived > |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & | operator= (const QuaternionBase< OtherDerived > &other) |
|
EIGEN_DEVICE_FUNC Derived & | operator= (const AngleAxisType &aa) |
|
template<class OtherDerived > |
EIGEN_DEVICE_FUNC Derived & | operator= (const MatrixBase< OtherDerived > &m) |
|
EIGEN_DEVICE_FUNC QuaternionBase & | setIdentity () |
|
EIGEN_DEVICE_FUNC Scalar | squaredNorm () const |
|
EIGEN_DEVICE_FUNC Scalar | norm () const |
|
EIGEN_DEVICE_FUNC void | normalize () |
|
EIGEN_DEVICE_FUNC Quaternion< Scalar > | normalized () const |
|
template<class OtherDerived > |
EIGEN_DEVICE_FUNC Scalar | dot (const QuaternionBase< OtherDerived > &other) const |
|
template<class OtherDerived > |
EIGEN_DEVICE_FUNC Scalar | angularDistance (const QuaternionBase< OtherDerived > &other) const |
|
EIGEN_DEVICE_FUNC Matrix3 | toRotationMatrix () const |
|
template<typename Derived1 , typename Derived2 > |
EIGEN_DEVICE_FUNC Derived & | setFromTwoVectors (const MatrixBase< Derived1 > &a, const MatrixBase< Derived2 > &b) |
|
template<class OtherDerived > |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Quaternion< Scalar > | operator* (const QuaternionBase< OtherDerived > &q) const |
|
template<class OtherDerived > |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & | operator*= (const QuaternionBase< OtherDerived > &q) |
|
EIGEN_DEVICE_FUNC Quaternion< Scalar > | inverse () const |
|
EIGEN_DEVICE_FUNC Quaternion< Scalar > | conjugate () const |
|
template<class OtherDerived > |
EIGEN_DEVICE_FUNC Quaternion< Scalar > | slerp (const Scalar &t, const QuaternionBase< OtherDerived > &other) const |
|
template<class OtherDerived > |
EIGEN_DEVICE_FUNC bool | operator== (const QuaternionBase< OtherDerived > &other) const |
|
template<class OtherDerived > |
EIGEN_DEVICE_FUNC bool | operator!= (const QuaternionBase< OtherDerived > &other) const |
|
template<class OtherDerived > |
EIGEN_DEVICE_FUNC bool | isApprox (const QuaternionBase< OtherDerived > &other, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const |
|
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Vector3 | _transformVector (const Vector3 &v) const |
|
template<typename NewScalarType > |
EIGEN_DEVICE_FUNC std::enable_if_t< internal::is_same< Scalar, NewScalarType >::value, const Derived & > | cast () const |
|
template<typename NewScalarType > |
EIGEN_DEVICE_FUNC std::enable_if_t<!internal::is_same< Scalar, NewScalarType >::value, Quaternion< NewScalarType > > | cast () const |
|
template<class OtherDerived > |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Quaternion< typename internal::traits< Derived >::Scalar > | operator* (const QuaternionBase< OtherDerived > &other) const |
|
template<class MatrixDerived > |
EIGEN_DEVICE_FUNC Derived & | operator= (const MatrixBase< MatrixDerived > &xpr) |
|
template<class OtherDerived > |
EIGEN_DEVICE_FUNC internal::traits< Derived >::Scalar | angularDistance (const QuaternionBase< OtherDerived > &other) const |
|
template<class OtherDerived > |
EIGEN_DEVICE_FUNC Quaternion< typename internal::traits< Derived >::Scalar > | slerp (const Scalar &t, const QuaternionBase< OtherDerived > &other) const |
|
EIGEN_DEVICE_FUNC const Derived & | derived () const |
|
EIGEN_DEVICE_FUNC Derived & | derived () |
|
EIGEN_DEVICE_FUNC RotationMatrixType | toRotationMatrix () const |
|
EIGEN_DEVICE_FUNC RotationMatrixType | matrix () const |
|
EIGEN_DEVICE_FUNC Derived | inverse () const |
|
EIGEN_DEVICE_FUNC Transform< Scalar, Dim, Isometry > | operator* (const Translation< Scalar, Dim > &t) const |
|
EIGEN_DEVICE_FUNC RotationMatrixType | operator* (const UniformScaling< Scalar > &s) const |
|
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE internal::rotation_base_generic_product_selector< Derived, OtherDerived, OtherDerived::IsVectorAtCompileTime >::ReturnType | operator* (const EigenBase< OtherDerived > &e) const |
|
EIGEN_DEVICE_FUNC Transform< Scalar, Dim, Mode > | operator* (const Transform< Scalar, Dim, Mode, Options > &t) const |
|
EIGEN_DEVICE_FUNC VectorType | _transformVector (const OtherVectorType &v) const |
|
template<class Derived>
class Eigen::QuaternionBase< Derived >
Base class for quaternion expressions.
\geometry_module
- Template Parameters
-
Derived | derived type (CRTP) |
- See also
- class Quaternion
template<class Derived >
template<typename Derived1 , typename Derived2 >
- Returns
- the quaternion which transform a into b through a rotation
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.
- Returns
- a reference to
*this
.
Note that the two input vectors do not have to be normalized, and do not need to have the same norm.
663 if (
c <
Scalar(-1) + NumTraits<Scalar>::dummy_precision()) {
665 Matrix<Scalar, 2, 3>
m;
666 m << v0.transpose(),
v1.transpose();
671 this->
w() =
sqrt(w2);
678 this->
vec() = axis * invs;
AnnoyingScalar sqrt(const AnnoyingScalar &x)
Definition: AnnoyingScalar.h:134
cout<< "Here is the matrix m:"<< endl<< m<< endl;JacobiSVD< MatrixXf, ComputeThinU|ComputeThinV > svd(m)
M1<< 1, 2, 3, 4, 5, 6, 7, 8, 9;Map< RowVectorXf > v1(M1.data(), M1.size())
Scalar * b
Definition: benchVecAdd.cpp:17
@ ComputeFullV
Definition: Constants.h:393
RealScalar s
Definition: level1_cplx_impl.h:130
const Scalar * a
Definition: level2_cplx_impl.h:32
int * m
Definition: level2_cplx_impl.h:294
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE T maxi(const T &x, const T &y)
Definition: MathFunctions.h:926
int c
Definition: calibrate.py:100
References a, b, calibrate::c, Eigen::ComputeFullV, EIGEN_USING_STD, m, Eigen::numext::maxi(), s, sqrt(), svd(), v1(), and w.
Referenced by Eigen::Quaternion< Scalar_, Options_ >::FromTwoVectors().