mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-15 07:10:37 +08:00
Merged in infinitei/eigen (pull request PR-328)
bug #1464 : Fixes construction of EulerAngles from 3D vector expression. Approved-by: Tal Hadad <tal_hd@hotmail.com> Approved-by: Abhijit Kundu <abhijit.kundu@gatech.edu>
This commit is contained in:
commit
a91918a105
@ -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)
|
||||
|
@ -278,6 +278,9 @@ void test_EulerAngles()
|
||||
EulerAnglesXYZd onesEd(1, 1, 1);
|
||||
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