|
enum | { Flags
} |
|
typedef AngleAxis< Scalar > | AngleAxisType |
|
typedef RotationBase< Derived, 3 > | Base |
|
typedef internal::traits< Derived >::Coefficients | Coefficients |
|
typedef Coefficients::CoeffReturnType | CoeffReturnType |
|
typedef Matrix< Scalar, 3, 3 > | Matrix3 |
|
typedef std::conditional_t< bool(internal::traits< Derived >::Flags &LvalueBit), Scalar &, CoeffReturnType > | NonConstCoeffReturnType |
|
typedef NumTraits< Scalar >::Real | RealScalar |
|
typedef internal::traits< Derived >::Scalar | Scalar |
|
typedef Matrix< Scalar, 3, 1 > | Vector3 |
|
enum | |
|
typedef Matrix< Scalar, Dim, Dim > | RotationMatrixType |
|
typedef internal::traits< Derived >::Scalar | Scalar |
|
typedef Matrix< Scalar, Dim, 1 > | VectorType |
|
|
Vector3 | _transformVector (const Vector3 &v) const |
|
template<class OtherDerived > |
Scalar | angularDistance (const QuaternionBase< OtherDerived > &other) const |
|
template<class OtherDerived > |
internal::traits< Derived >::Scalar | angularDistance (const QuaternionBase< OtherDerived > &other) const |
|
template<typename NewScalarType > |
internal::cast_return_type< Derived, Quaternion< NewScalarType > >::type | cast () const |
|
internal::traits< Derived >::Coefficients & | coeffs () |
|
const internal::traits< Derived >::Coefficients & | coeffs () const |
|
Quaternion< Scalar > | conjugate () const |
|
template<class OtherDerived > |
Scalar | dot (const QuaternionBase< OtherDerived > &other) const |
|
Quaternion< Scalar > | inverse () const |
|
template<class OtherDerived > |
bool | isApprox (const QuaternionBase< OtherDerived > &other, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const |
|
Scalar | norm () const |
|
void | normalize () |
|
Quaternion< Scalar > | normalized () const |
|
template<class OtherDerived > |
bool | operator!= (const QuaternionBase< OtherDerived > &other) const |
|
template<class OtherDerived > |
Quaternion< typename internal::traits< Derived >::Scalar > | operator* (const QuaternionBase< OtherDerived > &other) const |
|
template<class OtherDerived > |
Quaternion< Scalar > | operator* (const QuaternionBase< OtherDerived > &q) const |
|
template<class OtherDerived > |
Derived & | operator*= (const QuaternionBase< OtherDerived > &q) |
|
Derived & | operator= (const AngleAxisType &aa) |
|
template<class MatrixDerived > |
Derived & | operator= (const MatrixBase< MatrixDerived > &xpr) |
|
template<class OtherDerived > |
Derived & | operator= (const MatrixBase< OtherDerived > &m) |
|
QuaternionBase< Derived > & | operator= (const QuaternionBase< Derived > &other) |
|
template<class OtherDerived > |
Derived & | operator= (const QuaternionBase< OtherDerived > &other) |
|
template<class OtherDerived > |
bool | operator== (const QuaternionBase< OtherDerived > &other) const |
|
template<typename Derived1 , typename Derived2 > |
Derived & | setFromTwoVectors (const MatrixBase< Derived1 > &a, const MatrixBase< Derived2 > &b) |
|
QuaternionBase & | setIdentity () |
|
template<class OtherDerived > |
Quaternion< Scalar > | slerp (const Scalar &t, const QuaternionBase< OtherDerived > &other) const |
|
template<class OtherDerived > |
Quaternion< typename internal::traits< Derived >::Scalar > | slerp (const Scalar &t, const QuaternionBase< OtherDerived > &other) const |
|
Scalar | squaredNorm () const |
|
Matrix3 | toRotationMatrix () const |
|
VectorBlock< Coefficients, 3 > | vec () |
|
const VectorBlock< const Coefficients, 3 > | vec () const |
|
NonConstCoeffReturnType | w () |
|
CoeffReturnType | w () const |
|
NonConstCoeffReturnType | x () |
|
CoeffReturnType | x () const |
|
NonConstCoeffReturnType | y () |
|
CoeffReturnType | y () const |
|
NonConstCoeffReturnType | z () |
|
CoeffReturnType | z () const |
|
VectorType | _transformVector (const OtherVectorType &v) const |
|
Derived & | derived () |
|
const Derived & | derived () const |
|
Derived | inverse () const |
|
RotationMatrixType | matrix () const |
|
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 |
|
Transform< Scalar, Dim, Isometry > | operator* (const Translation< Scalar, Dim > &t) const |
|
RotationMatrixType | operator* (const UniformScaling< Scalar > &s) const |
|
RotationMatrixType | toRotationMatrix () const |
|
template<class Derived>
class Eigen::QuaternionBase< Derived >
Base class for quaternion expressions.
This is defined in the Geometry module.
- Template Parameters
-
Derived | derived type (CRTP) |
- See also
- class Quaternion
Definition at line 37 of file Quaternion.h.
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.
Definition at line 644 of file Quaternion.h.
659 if (
c <
Scalar(-1)+NumTraits<Scalar>::dummy_precision())
662 Matrix<Scalar,2,3>
m;
m << v0.transpose(),
v1.transpose();
667 this->
w() =
sqrt(w2);
674 this->
vec() = axis * invs;
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())
EIGEN_ALWAYS_INLINE T maxi(const T &x, const T &y)
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_sqrt_op< typename Derived::Scalar >, const Derived > sqrt(const Eigen::ArrayBase< Derived > &x)