Home | History | Annotate | Download | only in Geometry

Lines Matching refs:m_coeffs

69   inline Scalar x() const { return m_coeffs.coeff(0); }
71 inline Scalar y() const { return m_coeffs.coeff(1); }
73 inline Scalar z() const { return m_coeffs.coeff(2); }
75 inline Scalar w() const { return m_coeffs.coeff(3); }
78 inline Scalar& x() { return m_coeffs.coeffRef(0); }
80 inline Scalar& y() { return m_coeffs.coeffRef(1); }
82 inline Scalar& z() { return m_coeffs.coeffRef(2); }
84 inline Scalar& w() { return m_coeffs.coeffRef(3); }
87 inline const Block<const Coefficients,3,1> vec() const { return m_coeffs.template start<3>(); }
90 inline Block<Coefficients,3,1> vec() { return m_coeffs.template start<3>(); }
93 inline const Coefficients& coeffs() const { return m_coeffs; }
96 inline Coefficients& coeffs() { return m_coeffs; }
109 { m_coeffs << x, y, z, w; }
112 inline Quaternion(const Quaternion& other) { m_coeffs = other.m_coeffs; }
137 inline Quaternion& setIdentity() { m_coeffs << 0, 0, 0, 1; return *this; }
142 inline Scalar squaredNorm() const { return m_coeffs.squaredNorm(); }
147 inline Scalar norm() const { return m_coeffs.norm(); }
151 inline void normalize() { m_coeffs.normalize(); }
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_coeffs); }
193 { m_coeffs = other.coeffs().template cast<Scalar>(); }
200 { return m_coeffs.isApprox(other.m_coeffs, prec); }
203 Coefficients m_coeffs;
265 m_coeffs = other.m_coeffs;