mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-15 07:10:37 +08:00
bug #1464 : Fixes construction of EulerAngles from 3D vector expression.
This commit is contained in:
parent
304ef29571
commit
6d991a9595
@ -341,7 +341,7 @@ EIGEN_EULER_ANGLES_TYPEDEFS(double, d)
|
||||
|
||||
// set from a vector of Euler angles
|
||||
template<class System, class Other>
|
||||
struct eulerangles_assign_impl<System,Other,4,1>
|
||||
struct eulerangles_assign_impl<System,Other,3,1>
|
||||
{
|
||||
typedef typename Other::Scalar Scalar;
|
||||
static void run(EulerAngles<Scalar, System>& e, const Other& vec)
|
||||
|
@ -279,6 +279,9 @@ void test_EulerAngles()
|
||||
EulerAnglesXYZf onesEf = onesEd.cast<float>();
|
||||
VERIFY_IS_APPROX(onesEd, onesEf.cast<double>());
|
||||
|
||||
// Simple Construction from Vector3 test
|
||||
VERIFY_IS_APPROX(onesEd, EulerAnglesXYZd(Vector3d::Ones()));
|
||||
|
||||
CALL_SUBTEST_1( eulerangles_manual<float>() );
|
||||
CALL_SUBTEST_2( eulerangles_manual<double>() );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user