Lines Matching refs:Scalar
36 typedef _Scalar Scalar;
51 typedef _Scalar Scalar;
52 typedef Matrix<Scalar,2,1> Vector2;
53 typedef Matrix<Scalar,2,2> Matrix2;
57 Scalar m_angle;
62 EIGEN_DEVICE_FUNC explicit inline Rotation2D(const Scalar& a) : m_angle(a) {}
78 EIGEN_DEVICE_FUNC inline Scalar angle() const { return m_angle; }
81 EIGEN_DEVICE_FUNC inline Scalar& angle() { return m_angle; }
84 EIGEN_DEVICE_FUNC inline Scalar smallestPositiveAngle() const {
85 Scalar tmp = numext::fmod(m_angle,Scalar(2*EIGEN_PI));
86 return tmp<Scalar(0) ? tmp + Scalar(2*EIGEN_PI) : tmp;
90 EIGEN_DEVICE_FUNC inline Scalar smallestAngle() const {
91 Scalar tmp = numext::fmod(m_angle,Scalar(2*EIGEN_PI));
92 if(tmp>Scalar(EIGEN_PI)) tmp -= Scalar(2*EIGEN_PI);
93 else if(tmp<-Scalar(EIGEN_PI)) tmp += Scalar(2*EIGEN_PI);
130 EIGEN_DEVICE_FUNC inline Rotation2D slerp(const Scalar& t, const Rotation2D& other) const
132 Scalar dist = Rotation2D(other.m_angle-m_angle).smallestAngle();
149 m_angle = Scalar(other.angle());
158 …Approx(const Rotation2D& other, const typename NumTraits<Scalar>::Real& prec = NumTraits<Scalar>::…
174 template<typename Scalar>
176 EIGEN_DEVICE_FUNC Rotation2D<Scalar>& Rotation2D<Scalar>::fromRotationMatrix(const MatrixBase<Deriv…
186 template<typename Scalar>
187 typename Rotation2D<Scalar>::Matrix2
188 EIGEN_DEVICE_FUNC Rotation2D<Scalar>::toRotationMatrix(void) const
192 Scalar sinA = sin(m_angle);
193 Scalar cosA = cos(m_angle);