Lines Matching refs:Quaternion
105 static inline Quaternion<Scalar> Identity() { return Quaternion<Scalar>(1, 0, 0, 0); } in Identity()
126 inline Quaternion<Scalar> normalized() const { return Quaternion<Scalar>(coeffs().normalized()); } in normalized()
144 …template<class OtherDerived> EIGEN_STRONG_INLINE Quaternion<Scalar> operator* (const QuaternionBas…
148 Quaternion<Scalar> inverse() const;
151 Quaternion<Scalar> conjugate() const;
153 …template<class OtherDerived> Quaternion<Scalar> slerp(const Scalar& t, const QuaternionBase<OtherD…
172 inline typename internal::cast_return_type<Derived,Quaternion<NewScalarType> >::type cast() const in cast()
174 return typename internal::cast_return_type<Derived,Quaternion<NewScalarType> >::type(derived()); in cast()
213 struct traits<Quaternion<_Scalar,_Options> >
215 typedef Quaternion<_Scalar,_Options> PlainObject;
226 class Quaternion : public QuaternionBase<Quaternion<_Scalar,_Options> >
228 typedef QuaternionBase<Quaternion<_Scalar,_Options> > Base;
229 enum { IsAligned = internal::traits<Quaternion>::IsAligned };
234 EIGEN_INHERIT_ASSIGNMENT_OPERATORS(Quaternion)
237 typedef typename internal::traits<Quaternion>::Coefficients Coefficients;
241 inline Quaternion() {}
250 …inline Quaternion(const Scalar& w, const Scalar& x, const Scalar& y, const Scalar& z) : m_coeffs(x…
253 inline Quaternion(const Scalar* data) : m_coeffs(data) {}
256 …template<class Derived> EIGEN_STRONG_INLINE Quaternion(const QuaternionBase<Derived>& other) { thi…
259 explicit inline Quaternion(const AngleAxisType& aa) { *this = aa; }
266 explicit inline Quaternion(const MatrixBase<Derived>& other) { *this = other; }
270 explicit inline Quaternion(const Quaternion<OtherScalar, OtherOptions>& other)
274 static Quaternion FromTwoVectors(const MatrixBase<Derived1>& a, const MatrixBase<Derived2>& b);
295 typedef Quaternion<float> Quaternionf;
298 typedef Quaternion<double> Quaterniond;
306 …struct traits<Map<Quaternion<_Scalar>, _Options> > : traits<Quaternion<_Scalar, (int(_Options)&Ali…
314 …struct traits<Map<const Quaternion<_Scalar>, _Options> > : traits<Quaternion<_Scalar, (int(_Option…
317 …typedef traits<Quaternion<_Scalar, (int(_Options)&Aligned)==Aligned ? AutoAlign : DontAlign> > Tra…
336 class Map<const Quaternion<_Scalar>, _Options >
337 : public QuaternionBase<Map<const Quaternion<_Scalar>, _Options> >
339 typedef QuaternionBase<Map<const Quaternion<_Scalar>, _Options> > Base;
373 class Map<Quaternion<_Scalar>, _Options >
374 : public QuaternionBase<Map<Quaternion<_Scalar>, _Options> >
376 typedef QuaternionBase<Map<Quaternion<_Scalar>, _Options> > Base;
401 typedef Map<Quaternion<float>, 0> QuaternionMapf;
404 typedef Map<Quaternion<double>, 0> QuaternionMapd;
407 typedef Map<Quaternion<float>, Aligned> QuaternionMapAlignedf;
410 typedef Map<Quaternion<double>, Aligned> QuaternionMapAlignedd;
421 …static EIGEN_STRONG_INLINE Quaternion<Scalar> run(const QuaternionBase<Derived1>& a, const Quatern…
422 return Quaternion<Scalar>
436 EIGEN_STRONG_INLINE Quaternion<typename internal::traits<Derived>::Scalar>
621 Quaternion<Scalar,Options> Quaternion<Scalar,Options>::FromTwoVectors(const MatrixBase<Derived1>& a…
623 Quaternion quat;
636 inline Quaternion<typename internal::traits<Derived>::Scalar> QuaternionBase<Derived>::inverse() co…
641 return Quaternion<Scalar>(conjugate().coeffs() / n2);
645 return Quaternion<Scalar>(Coefficients::Zero());
656 inline Quaternion<typename internal::traits<Derived>::Scalar>
659 return Quaternion<Scalar>(this->w(),-this->x(),-this->y(),-this->z());
672 Quaternion<Scalar> d = (*this) * other.conjugate();
686 Quaternion<typename internal::traits<Derived>::Scalar>
715 return Quaternion<Scalar>(scale0 * coeffs() + scale1 * other.coeffs());