Searched refs:Quaternionx (Results 1 – 5 of 5) sorted by relevance
/external/eigen/test/ |
D | geo_quaternion.cpp | 53 typedef Quaternion<Scalar,Options> Quaternionx; in quaternion() typedef 71 Quaternionx q1, q2; in quaternion() 73 VERIFY_IS_APPROX(Quaternionx(Quaternionx::Identity()).coeffs(), q2.coeffs()); in quaternion() 107 VERIFY_IS_APPROX(q1 * v1, Quaternionx(aa) * v1); in quaternion() 115 VERIFY_IS_NOT_APPROX(q1 * v1, Quaternionx(AngleAxisx(aa.angle()*2,aa.axis())) * v1); in quaternion() 130 VERIFY_IS_APPROX( v2.normalized(),(Quaternionx::FromTwoVectors(v1, v2)*v1).normalized()); in quaternion() 131 VERIFY_IS_APPROX( v1.normalized(),(Quaternionx::FromTwoVectors(v1, v1)*v1).normalized()); in quaternion() 132 VERIFY_IS_APPROX(-v1.normalized(),(Quaternionx::FromTwoVectors(v1,-v1)*v1).normalized()); in quaternion() 136 VERIFY_IS_APPROX( v3.normalized(),(Quaternionx::FromTwoVectors(v1, v3)*v1).normalized()); in quaternion() 137 VERIFY_IS_APPROX(-v3.normalized(),(Quaternionx::FromTwoVectors(v1,-v3)*v1).normalized()); in quaternion() [all …]
|
D | geo_eulerangles.cpp | 64 typedef Quaternion<Scalar> Quaternionx; in eulerangles() typedef 68 Quaternionx q1; in eulerangles() 79 q1.coeffs() = Quaternionx::Coefficients::Random().normalized(); in eulerangles()
|
D | geo_transformations.cpp | 21 typedef Quaternion<Scalar> Quaternionx; in non_projective_only() typedef 34 Quaternionx q1, q2; in non_projective_only() 87 typedef Quaternion<Scalar> Quaternionx; in transformations() typedef 118 Quaternionx q1, q2; in transformations() 133 VERIFY_IS_APPROX(q1 * v1, Quaternionx(aa) * v1); in transformations() 137 VERIFY( !(q1 * v1).isApprox(Quaternionx(AngleAxisx(aa.angle()*2,aa.axis())) * v1) ); in transformations() 141 VERIFY_IS_APPROX(q1 * v1, Quaternionx(aa) * v1); in transformations() 144 VERIFY( !(q1 * v1).isApprox(Quaternionx(AngleAxisx(aa.angle()*2,aa.axis())) * v1) ); in transformations() 149 Quaternionx(AngleAxisx(a,v1.normalized())).toRotationMatrix()); in transformations() 155 Quaternionx(m).toRotationMatrix()); in transformations()
|
/external/eigen/test/eigen2/ |
D | eigen2_geometry_with_eigen2_prefix.cpp | 29 typedef eigen2_Quaternion<Scalar> Quaternionx; in geometry() typedef 59 Quaternionx q1, q2; in geometry() 61 VERIFY_IS_APPROX(Quaternionx(Quaternionx::Identity()).coeffs(), q2.coeffs()); in geometry() 113 VERIFY_IS_APPROX(q1 * v1, Quaternionx(aa) * v1); in geometry() 114 VERIFY_IS_NOT_APPROX(q1 * v1, Quaternionx(AngleAxisx(aa.angle()*2,aa.axis())) * v1); in geometry() 126 Quaternionx(AngleAxisx(a,v1.normalized())).toRotationMatrix()); in geometry() 132 Quaternionx(m).toRotationMatrix()); in geometry()
|
D | eigen2_geometry.cpp | 27 typedef Quaternion<Scalar> Quaternionx; in geometry() typedef 57 Quaternionx q1, q2; in geometry() 59 VERIFY_IS_APPROX(Quaternionx(Quaternionx::Identity()).coeffs(), q2.coeffs()); in geometry() 111 VERIFY_IS_APPROX(q1 * v1, Quaternionx(aa) * v1); in geometry() 112 VERIFY_IS_NOT_APPROX(q1 * v1, Quaternionx(AngleAxisx(aa.angle()*2,aa.axis())) * v1); in geometry() 124 Quaternionx(AngleAxisx(a,v1.normalized())).toRotationMatrix()); in geometry() 130 Quaternionx(m).toRotationMatrix()); in geometry()
|