Go to the documentation of this file.
10 #ifndef EIGEN_EULERSYSTEM_H
11 #define EIGEN_EULERSYSTEM_H
16 template <
typename _Scalar,
class _System>
22 template <
int Num,
bool IsPositive = (Num > 0)>
29 struct Abs<Num, false>
41 #define EIGEN_EULER_ANGLES_CLASS_STATIC_ASSERT(COND,MSG) typedef char static_assertion_##MSG[(COND)?1:-1]
119 template <
int _AlphaAxis,
int _BetaAxis,
int _GammaAxis>
154 ALPHA_AXIS_IS_INVALID);
157 BETA_AXIS_IS_INVALID);
160 GAMMA_AXIS_IS_INVALID);
163 ALPHA_AXIS_CANT_BE_EQUAL_TO_BETA_AXIS);
166 BETA_AXIS_CANT_BE_EQUAL_TO_GAMMA_AXIS);
179 template <
typename Derived>
207 template <
typename Derived>
250 template<
typename Scalar>
259 bool PositiveRangeAlpha,
260 bool PositiveRangeBeta,
261 bool PositiveRangeGamma,
270 template<
typename Scalar>
274 bool PositiveRangeAlpha,
275 bool PositiveRangeBeta,
276 bool PositiveRangeGamma)
292 if (PositiveRangeAlpha && (res.
alpha() < 0))
295 if (PositiveRangeBeta && (res.
beta() < 0))
298 if (PositiveRangeGamma && (res.
gamma() < 0))
302 template <
typename _Scalar,
class _System>
306 #define EIGEN_EULER_SYSTEM_TYPEDEF(A, B, C) \
308 typedef EulerSystem<EULER_##A, EULER_##B, EULER_##C> EulerSystem##A##B##C;
326 #endif // EIGEN_EULERSYSTEM_H
Represents a rotation in a 3 dimensional space as three Euler angles.
const EIGEN_DEVICE_FUNC SinReturnType sin() const
const AutoDiffScalar< Matrix< typename internal::traits< typename internal::remove_all< DerTypeA >::type >::Scalar, Dynamic, 1 > > atan2(const AutoDiffScalar< DerTypeA > &a, const AutoDiffScalar< DerTypeB > &b)
static const int BetaAxis
static const int AlphaAxis
static const int GammaAxis
#define EIGEN_EULER_SYSTEM_TYPEDEF(A, B, C)
static void CalcEulerAngles_imp(Matrix< typename MatrixBase< Derived >::Scalar, 3, 1 > &res, const MatrixBase< Derived > &mat, internal::true_type)
const Vector3 & angles() const
Represents a fixed Euler rotation system.
static void CalcEulerAngles(EulerAngles< Scalar, EulerSystem > &res, const typename EulerAngles< Scalar, EulerSystem >::Matrix3 &mat)
static void CalcEulerAngles_imp(Matrix< typename MatrixBase< Derived >::Scalar, 3, 1 > &res, const MatrixBase< Derived > &mat, internal::false_type)
internal::traits< Derived >::Scalar Scalar
The matrix class, also used for vectors and row-vectors.
Base class for all dense matrices, vectors, and expressions.
static void CalcEulerAngles(EulerAngles< Scalar, EulerSystem > &res, const typename EulerAngles< Scalar, EulerSystem >::Matrix3 &mat, bool PositiveRangeAlpha, bool PositiveRangeBeta, bool PositiveRangeGamma)
static void CalcEulerAngles(EulerAngles< Scalar, EulerSystem > &res, const typename EulerAngles< Scalar, EulerSystem >::Matrix3 &mat)
EulerAxis
Representation of a fixed signed rotation axis for EulerSystem.
EIGEN_EULER_ANGLES_CLASS_STATIC_ASSERT(internal::IsValidAxis< AlphaAxis >::value, ALPHA_AXIS_IS_INVALID)
const EIGEN_DEVICE_FUNC CosReturnType cos() const
control_box_rst
Author(s): Christoph Rösmann
autogenerated on Wed Mar 2 2022 00:05:45