Lines Matching defs:Rotation2D
17 * \class Rotation2D
34 template<typename _Scalar> struct traits<Rotation2D<_Scalar> >
41 class Rotation2D : public RotationBase<Rotation2D<_Scalar>,2>
43 typedef RotationBase<Rotation2D<_Scalar>,2> Base;
62 EIGEN_DEVICE_FUNC explicit inline Rotation2D(const Scalar& a) : m_angle(a) {}
65 EIGEN_DEVICE_FUNC Rotation2D() {}
72 EIGEN_DEVICE_FUNC explicit Rotation2D(const MatrixBase<Derived>& m)
98 EIGEN_DEVICE_FUNC inline Rotation2D inverse() const { return Rotation2D(-m_angle); }
101 EIGEN_DEVICE_FUNC inline Rotation2D operator*(const Rotation2D& other) const
102 { return Rotation2D(m_angle + other.m_angle); }
105 EIGEN_DEVICE_FUNC inline Rotation2D& operator*=(const Rotation2D& other)
113 EIGEN_DEVICE_FUNC Rotation2D& fromRotationMatrix(const MatrixBase<Derived>& m);
124 EIGEN_DEVICE_FUNC Rotation2D& operator=(const MatrixBase<Derived>& m)
130 EIGEN_DEVICE_FUNC inline Rotation2D slerp(const Scalar& t, const Rotation2D& other) const
132 Scalar dist = Rotation2D(other.m_angle-m_angle).smallestAngle();
133 return Rotation2D(m_angle + dist*t);
142 EIGEN_DEVICE_FUNC inline typename internal::cast_return_type<Rotation2D,Rotation2D<NewScalarType> >::type cast() const
143 { return typename internal::cast_return_type<Rotation2D,Rotation2D<NewScalarType> >::type(*this); }
147 EIGEN_DEVICE_FUNC inline explicit Rotation2D(const Rotation2D<OtherScalarType>& other)
152 EIGEN_DEVICE_FUNC static inline Rotation2D Identity() { return Rotation2D(0); }
158 EIGEN_DEVICE_FUNC bool isApprox(const Rotation2D& other, const typename NumTraits<Scalar>::Real& prec = NumTraits<Scalar>::dummy_precision()) const
165 typedef Rotation2D<float> Rotation2Df;
168 typedef Rotation2D<double> Rotation2Dd;
176 EIGEN_DEVICE_FUNC Rotation2D<Scalar>& Rotation2D<Scalar>::fromRotationMatrix(const MatrixBase<Derived>& mat)
187 typename Rotation2D<Scalar>::Matrix2
188 EIGEN_DEVICE_FUNC Rotation2D<Scalar>::toRotationMatrix(void) const