10 #ifndef EIGEN_ROTATION2D_H
11 #define EIGEN_ROTATION2D_H
40 template<
typename _Scalar>
47 using Base::operator*;
71 template<
typename Derived>
112 template<
typename Derived>
123 template<
typename Derived>
141 template<
typename NewScalarType>
146 template<
typename OtherScalarType>
174 template<
typename Scalar>
175 template<
typename Derived>
179 EIGEN_STATIC_ASSERT(Derived::RowsAtCompileTime==2 && Derived::ColsAtCompileTime==2,YOU_MADE_A_PROGRAMMING_MISTAKE)
180 m_angle = atan2(mat.coeff(1,0), mat.coeff(0,0));
186 template<
typename Scalar>
194 return (
Matrix2() << cosA, -sinA, sinA, cosA).finished();
EIGEN_DEVICE_FUNC const CosReturnType cos() const
Definition: ArrayCwiseUnaryOps.h:237
EIGEN_DEVICE_FUNC const SinReturnType sin() const
Definition: ArrayCwiseUnaryOps.h:255
#define EIGEN_USING_STD(FUNC)
Definition: Macros.h:1185
#define EIGEN_DEVICE_FUNC
Definition: Macros.h:976
#define EIGEN_PI
Definition: MathFunctions.h:16
#define EIGEN_STATIC_ASSERT(CONDITION, MSG)
Definition: StaticAssert.h:127
Base class for all dense matrices, vectors, and expressions.
Definition: MatrixBase.h:50
The matrix class, also used for vectors and row-vectors.
Definition: Matrix.h:180
Represents a rotation/orientation in a 2 dimensional space.
Definition: Rotation2D.h:42
@ Dim
Definition: Rotation2D.h:49
EIGEN_DEVICE_FUNC Rotation2D(const Rotation2D< OtherScalarType > &other)
Definition: Rotation2D.h:147
EIGEN_DEVICE_FUNC Rotation2D inverse() const
Definition: Rotation2D.h:98
EIGEN_DEVICE_FUNC Scalar smallestAngle() const
Definition: Rotation2D.h:90
EIGEN_DEVICE_FUNC Rotation2D operator*(const Rotation2D &other) const
Definition: Rotation2D.h:101
EIGEN_DEVICE_FUNC Rotation2D & fromRotationMatrix(const MatrixBase< Derived > &m)
EIGEN_DEVICE_FUNC Matrix2 toRotationMatrix() const
Definition: Rotation2D.h:188
EIGEN_DEVICE_FUNC Rotation2D slerp(const Scalar &t, const Rotation2D &other) const
Definition: Rotation2D.h:130
EIGEN_DEVICE_FUNC Rotation2D & operator=(const MatrixBase< Derived > &m)
Definition: Rotation2D.h:124
Matrix< Scalar, 2, 1 > Vector2
Definition: Rotation2D.h:52
EIGEN_DEVICE_FUNC Rotation2D(const Scalar &a)
Definition: Rotation2D.h:62
RotationBase< Rotation2D< _Scalar >, 2 > Base
Definition: Rotation2D.h:43
EIGEN_DEVICE_FUNC Rotation2D & operator*=(const Rotation2D &other)
Definition: Rotation2D.h:105
EIGEN_DEVICE_FUNC Rotation2D(const MatrixBase< Derived > &m)
Definition: Rotation2D.h:72
EIGEN_DEVICE_FUNC internal::cast_return_type< Rotation2D, Rotation2D< NewScalarType > >::type cast() const
Definition: Rotation2D.h:142
Matrix< Scalar, 2, 2 > Matrix2
Definition: Rotation2D.h:53
static EIGEN_DEVICE_FUNC Rotation2D Identity()
Definition: Rotation2D.h:152
_Scalar Scalar
Definition: Rotation2D.h:51
EIGEN_DEVICE_FUNC bool isApprox(const Rotation2D &other, const typename NumTraits< Scalar >::Real &prec=NumTraits< Scalar >::dummy_precision()) const
Definition: Rotation2D.h:158
EIGEN_DEVICE_FUNC Scalar & angle()
Definition: Rotation2D.h:81
EIGEN_DEVICE_FUNC Scalar smallestPositiveAngle() const
Definition: Rotation2D.h:84
EIGEN_DEVICE_FUNC Rotation2D()
Definition: Rotation2D.h:65
EIGEN_DEVICE_FUNC Scalar angle() const
Definition: Rotation2D.h:78
Scalar m_angle
Definition: Rotation2D.h:57
Common base class for compact rotation representations.
Definition: RotationBase.h:30
Rotation2D< float > Rotation2Df
Definition: Rotation2D.h:165
Rotation2D< double > Rotation2Dd
Definition: Rotation2D.h:168
EIGEN_DEVICE_FUNC bool isApprox(const Scalar &x, const Scalar &y, const typename NumTraits< Scalar >::Real &precision=NumTraits< Scalar >::dummy_precision())
Definition: MathFunctions.h:1947
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE T fmod(const T &a, const T &b)
Definition: MathFunctions.h:1807
Namespace containing all symbols from the Eigen library.
Definition: LDLT.h:16
type
The type the bitset is encoded with.
Definition: bitset.hpp:44
Definition: document.h:416
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition: pointer.h:1181
Holds information about the various numeric (i.e. scalar) types allowed by Eigen.
Definition: NumTraits.h:233
Definition: XprHelper.h:510
_Scalar Scalar
Definition: Rotation2D.h:36
Definition: ForwardDeclarations.h:17