Home | History | Annotate | Download | only in Geometry

Lines Matching refs:coeffs

60   inline Scalar x() const { return this->derived().coeffs().coeff(0); }
62 inline Scalar y() const { return this->derived().coeffs().coeff(1); }
64 inline Scalar z() const { return this->derived().coeffs().coeff(2); }
66 inline Scalar w() const { return this->derived().coeffs().coeff(3); }
69 inline Scalar& x() { return this->derived().coeffs().coeffRef(0); }
71 inline Scalar& y() { return this->derived().coeffs().coeffRef(1); }
73 inline Scalar& z() { return this->derived().coeffs().coeffRef(2); }
75 inline Scalar& w() { return this->derived().coeffs().coeffRef(3); }
78 inline const VectorBlock<const Coefficients,3> vec() const { return coeffs().template head<3>(); }
81 inline VectorBlock<Coefficients,3> vec() { return coeffs().template head<3>(); }
84 inline const typename internal::traits<Derived>::Coefficients& coeffs() const { return derived().coeffs(); }
87 inline typename internal::traits<Derived>::Coefficients& coeffs() { return derived().coeffs(); }
109 inline QuaternionBase& setIdentity() { coeffs() << 0, 0, 0, 1; return *this; }
114 inline Scalar squaredNorm() const { return coeffs().squaredNorm(); }
119 inline Scalar norm() const { return coeffs().norm(); }
123 inline void normalize() { coeffs().normalize(); }
126 inline Quaternion<Scalar> normalized() const { return Quaternion<Scalar>(coeffs().normalized()); }
133 template<class OtherDerived> inline Scalar dot(const QuaternionBase<OtherDerived>& other) const { return coeffs().dot(other.coeffs()); }
161 { return coeffs().isApprox(other.coeffs(), prec); }
271 { m_coeffs = other.coeffs().template cast<Scalar>(); }
276 inline Coefficients& coeffs() { return m_coeffs;}
277 inline const Coefficients& coeffs() const { return m_coeffs;}
347 /** Constructs a Mapped Quaternion object from the pointer \a coeffs
349 * The pointer \a coeffs must reference the four coefficients of Quaternion in the following order:
350 * \code *coeffs == {x, y, z, w} \endcode
352 * If the template parameter _Options is set to #Aligned, then the pointer coeffs must be aligned. */
353 EIGEN_STRONG_INLINE Map(const Scalar* coeffs) : m_coeffs(coeffs) {}
355 inline const Coefficients& coeffs() const { return m_coeffs;}
384 /** Constructs a Mapped Quaternion object from the pointer \a coeffs
386 * The pointer \a coeffs must reference the four coefficients of Quaternion in the following order:
387 * \code *coeffs == {x, y, z, w} \endcode
389 * If the template parameter _Options is set to #Aligned, then the pointer coeffs must be aligned. */
390 EIGEN_STRONG_INLINE Map(Scalar* coeffs) : m_coeffs(coeffs) {}
392 inline Coefficients& coeffs() { return m_coeffs; }
393 inline const Coefficients& coeffs() const { return m_coeffs; }
479 coeffs() = other.coeffs();
487 coeffs() = other.coeffs();
641 return Quaternion<Scalar>(conjugate().coeffs() / n2);
717 return Quaternion<Scalar>(scale0 * coeffs() + scale1 * other.coeffs());
754 q.coeffs().coeffRef(i) = Scalar(0.5) * t;
757 q.coeffs().coeffRef(j) = (mat.coeff(j,i)+mat.coeff(i,j))*t;
758 q.coeffs().coeffRef(k) = (mat.coeff(k,i)+mat.coeff(i,k))*t;
770 q.coeffs() = vec;