• Home
  • Raw
  • Download

Lines Matching refs:Quaternion

41 template<typename _Scalar> struct ei_traits<Quaternion<_Scalar> >
47 class Quaternion : public RotationBase<Quaternion<_Scalar>,3>
49 typedef RotationBase<Quaternion<_Scalar>,3> Base;
99 inline Quaternion() {}
108 inline Quaternion(Scalar w, Scalar x, Scalar y, Scalar z)
112 inline Quaternion(const Quaternion& other) { m_coeffs = other.m_coeffs; }
115 explicit inline Quaternion(const AngleAxisType& aa) { *this = aa; }
123 explicit inline Quaternion(const MatrixBase<Derived>& other) { *this = other; }
125 Quaternion& operator=(const Quaternion& other);
126 Quaternion& operator=(const AngleAxisType& aa);
128 Quaternion& operator=(const MatrixBase<Derived>& m);
133 static inline Quaternion Identity() { return Quaternion(1, 0, 0, 0); }
137 inline Quaternion& setIdentity() { m_coeffs << 0, 0, 0, 1; return *this; }
154 inline Quaternion normalized() const { return Quaternion(m_coeffs.normalized()); }
161 …inline Scalar eigen2_dot(const Quaternion& other) const { return m_coeffs.eigen2_dot(other.m_coeff…
163 inline Scalar angularDistance(const Quaternion& other) const;
168 Quaternion& setFromTwoVectors(const MatrixBase<Derived1>& a, const MatrixBase<Derived2>& b);
170 inline Quaternion operator* (const Quaternion& q) const;
171 inline Quaternion& operator*= (const Quaternion& q);
173 Quaternion inverse(void) const;
174 Quaternion conjugate(void) const;
176 Quaternion slerp(Scalar t, const Quaternion& other) const;
187 …inline typename internal::cast_return_type<Quaternion,Quaternion<NewScalarType> >::type cast() con…
188 …{ return typename internal::cast_return_type<Quaternion,Quaternion<NewScalarType> >::type(*this); }
192 inline explicit Quaternion(const Quaternion<OtherScalarType>& other)
199 …bool isApprox(const Quaternion& other, typename NumTraits<Scalar>::Real prec = precision<Scalar>()…
208 typedef Quaternion<float> Quaternionf;
211 typedef Quaternion<double> Quaterniond;
214 template<typename Scalar> inline Quaternion<Scalar>
215 ei_quaternion_product(const Quaternion<Scalar>& a, const Quaternion<Scalar>& b)
217 return Quaternion<Scalar>
228 inline Quaternion<Scalar> Quaternion<Scalar>::operator* (const Quaternion& other) const
235 inline Quaternion<Scalar>& Quaternion<Scalar>::operator*= (const Quaternion& other)
249 inline typename Quaternion<Scalar>::Vector3
250 Quaternion<Scalar>::operator* (const MatrixBase<Derived>& v) const
263 inline Quaternion<Scalar>& Quaternion<Scalar>::operator=(const Quaternion& other)
272 inline Quaternion<Scalar>& Quaternion<Scalar>::operator=(const AngleAxisType& aa)
287 inline Quaternion<Scalar>& Quaternion<Scalar>::operator=(const MatrixBase<Derived>& xpr)
295 inline typename Quaternion<Scalar>::Matrix3
296 Quaternion<Scalar>::toRotationMatrix(void) const
338 inline Quaternion<Scalar>& Quaternion<Scalar>::setFromTwoVectors(const MatrixBase<Derived1>& a, con…
375 inline Quaternion<Scalar> Quaternion<Scalar>::inverse() const
380 return Quaternion(conjugate().coeffs() / n2);
384 return Quaternion(Coefficients::Zero());
395 inline Quaternion<Scalar> Quaternion<Scalar>::conjugate() const
397 return Quaternion(this->w(),-this->x(),-this->y(),-this->z());
404 inline Scalar Quaternion<Scalar>::angularDistance(const Quaternion& other) const
416 Quaternion<Scalar> Quaternion<Scalar>::slerp(Scalar t, const Quaternion& other) const
442 return Quaternion<Scalar>(scale0 * coeffs() + scale1 * other.coeffs());
450 static inline void run(Quaternion<Scalar>& q, const Other& mat)
489 static inline void run(Quaternion<Scalar>& q, const Other& vec)