Go to the documentation of this file.
10 #ifndef EIGEN_ANGLEAXIS_H
11 #define EIGEN_ANGLEAXIS_H
48 template<
typename _Scalar>
55 using Base::operator*;
78 template<
typename Derived>
84 template<
typename QuatDerived>
87 template<
typename Derived>
119 template<
class QuatDerived>
121 template<
typename Derived>
124 template<
typename Derived>
133 template<
typename NewScalarType>
138 template<
typename OtherScalarType>
168 template<
typename Scalar>
169 template<
typename QuatDerived>
176 n =
q.vec().stableNorm();
183 m_axis =
q.vec() /
n;
195 template<
typename Scalar>
196 template<
typename Derived>
207 template<
typename Scalar>
208 template<
typename Derived>
216 template<
typename Scalar>
228 tmp = cos1_axis.x() * m_axis.y();
229 res.coeffRef(0,1) = tmp - sin_axis.z();
230 res.coeffRef(1,0) = tmp + sin_axis.z();
232 tmp = cos1_axis.x() * m_axis.z();
233 res.coeffRef(0,2) = tmp + sin_axis.y();
234 res.coeffRef(2,0) = tmp - sin_axis.y();
236 tmp = cos1_axis.y() * m_axis.z();
237 res.coeffRef(1,2) = tmp - sin_axis.x();
238 res.coeffRef(2,1) = tmp + sin_axis.x();
240 res.diagonal() = (cos1_axis.cwiseProduct(m_axis)).
array() +
c;
247 #endif // EIGEN_ANGLEAXIS_H
#define EIGEN_DEVICE_FUNC
Namespace containing all symbols from the Eigen library.
const AutoDiffScalar< Matrix< typename internal::traits< typename internal::remove_all< DerTypeA >::type >::Scalar, Dynamic, 1 > > atan2(const AutoDiffScalar< DerTypeA > &a, const AutoDiffScalar< DerTypeB > &b)
#define EIGEN_USING_STD(FUNC)
Jet< T, N > sin(const Jet< T, N > &f)
EIGEN_DEVICE_FUNC AngleAxis()
Represents a 3D rotation as a rotation angle around an arbitrary 3D axis.
EIGEN_DEVICE_FUNC AngleAxis & operator=(const QuaternionBase< QuatDerived > &q)
EIGEN_DEVICE_FUNC bool isApprox(const Scalar &x, const Scalar &y, const typename NumTraits< Scalar >::Real &precision=NumTraits< Scalar >::dummy_precision())
cout<< "Here is the matrix m:"<< endl<< m<< endl;Matrix< ptrdiff_t, 3, 1 > res
Jet< T, N > cos(const Jet< T, N > &f)
EIGEN_DEVICE_FUNC Scalar angle() const
EIGEN_DEVICE_FUNC AngleAxis inverse() const
EIGEN_DEVICE_FUNC Scalar & angle()
EIGEN_DEVICE_FUNC Matrix3 toRotationMatrix(void) const
EIGEN_DEVICE_FUNC AngleAxis & fromRotationMatrix(const MatrixBase< Derived > &m)
EIGEN_DEVICE_FUNC const Scalar & q
EIGEN_DEVICE_FUNC Vector3 & axis()
Common base class for compact rotation representations.
Matrix< Scalar, 3, 3 > Matrix3
EIGEN_DEVICE_FUNC AngleAxis(const MatrixBase< Derived > &m)
EIGEN_DEVICE_FUNC QuaternionType operator*(const AngleAxis &other) const
AngleAxis< float > AngleAxisf
AngleAxis< double > AngleAxisd
const EIGEN_DEVICE_FUNC Vector3 & axis() const
The quaternion class used to represent 3D orientations and rotations.
static const EIGEN_DEVICE_FUNC AngleAxis Identity()
Matrix< Scalar, 3, 1 > Vector3
EIGEN_DEVICE_FUNC AngleAxis(const AngleAxis< OtherScalarType > &other)
The matrix class, also used for vectors and row-vectors.
Quaternion< Scalar > QuaternionType
Base class for all dense matrices, vectors, and expressions.
RotationBase< AngleAxis< _Scalar >, 3 > Base
EIGEN_DEVICE_FUNC AngleAxis(const Scalar &angle, const MatrixBase< Derived > &axis)
Base class for quaternion expressions.
EIGEN_DEVICE_FUNC internal::cast_return_type< AngleAxis, AngleAxis< NewScalarType > >::type cast() const
Holds information about the various numeric (i.e. scalar) types allowed by Eigen.
EIGEN_DEVICE_FUNC bool isApprox(const AngleAxis &other, const typename NumTraits< Scalar >::Real &prec=NumTraits< Scalar >::dummy_precision()) const
EIGEN_DEVICE_FUNC AngleAxis(const QuaternionBase< QuatDerived > &q)
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:01:48