Home
last modified time | relevance | path

Searched refs:AngleAxisx (Results 1 – 5 of 5) sorted by relevance

/external/eigen/test/eigen2/
Deigen2_geometry_with_eigen2_prefix.cpp30 typedef eigen2_AngleAxis<Scalar> AngleAxisx; in geometry() typedef
72 VERIFY_IS_APPROX(v0, AngleAxisx(a, v0.normalized()) * v0); in geometry()
73 VERIFY_IS_APPROX(-v0, AngleAxisx(Scalar(M_PI), v0.unitOrthogonal()) * v0); in geometry()
74 …VERIFY_IS_APPROX(ei_cos(a)*v0.squaredNorm(), v0.eigen2_dot(AngleAxisx(a, v0.unitOrthogonal()) * v0… in geometry()
75 m = AngleAxisx(a, v0.normalized()).toRotationMatrix().adjoint(); in geometry()
76 VERIFY_IS_APPROX(Matrix3::Identity(), m * AngleAxisx(a, v0.normalized())); in geometry()
77 VERIFY_IS_APPROX(Matrix3::Identity(), AngleAxisx(a, v0.normalized()) * m); in geometry()
79 q1 = AngleAxisx(a, v0.normalized()); in geometry()
80 q2 = AngleAxisx(a, v1.normalized()); in geometry()
83 Scalar refangle = ei_abs(AngleAxisx(q1.inverse()*q2).angle()); in geometry()
[all …]
Deigen2_geometry.cpp28 typedef AngleAxis<Scalar> AngleAxisx; in geometry() typedef
70 VERIFY_IS_APPROX(v0, AngleAxisx(a, v0.normalized()) * v0); in geometry()
71 VERIFY_IS_APPROX(-v0, AngleAxisx(Scalar(M_PI), v0.unitOrthogonal()) * v0); in geometry()
72 …VERIFY_IS_APPROX(ei_cos(a)*v0.squaredNorm(), v0.eigen2_dot(AngleAxisx(a, v0.unitOrthogonal()) * v0… in geometry()
73 m = AngleAxisx(a, v0.normalized()).toRotationMatrix().adjoint(); in geometry()
74 VERIFY_IS_APPROX(Matrix3::Identity(), m * AngleAxisx(a, v0.normalized())); in geometry()
75 VERIFY_IS_APPROX(Matrix3::Identity(), AngleAxisx(a, v0.normalized()) * m); in geometry()
77 q1 = AngleAxisx(a, v0.normalized()); in geometry()
78 q2 = AngleAxisx(a, v1.normalized()); in geometry()
81 Scalar refangle = ei_abs(AngleAxisx(q1.inverse()*q2).angle()); in geometry()
[all …]
/external/eigen/test/
Dgeo_eulerangles.cpp21 typedef AngleAxis<Scalar> AngleAxisx; in verify_euler() typedef
23 …Matrix3 m(AngleAxisx(ea[0], Vector3::Unit(i)) * AngleAxisx(ea[1], Vector3::Unit(j)) * AngleAxisx(e… in verify_euler()
25 …Matrix3 mbis(AngleAxisx(eabis[0], Vector3::Unit(i)) * AngleAxisx(eabis[1], Vector3::Unit(j)) * Ang… in verify_euler()
65 typedef AngleAxis<Scalar> AngleAxisx; in eulerangles() typedef
69 q1 = AngleAxisx(a, Vector3::Random().normalized()); in eulerangles()
Dgeo_transformations.cpp22 typedef AngleAxis<Scalar> AngleAxisx; in non_projective_only() typedef
36 q1 = AngleAxisx(a, v0.normalized()); in non_projective_only()
88 typedef AngleAxis<Scalar> AngleAxisx; in transformations() typedef
108 VERIFY_IS_APPROX(v0, AngleAxisx(a, v0.normalized()) * v0); in transformations()
109 VERIFY_IS_APPROX(-v0, AngleAxisx(Scalar(M_PI), v0.unitOrthogonal()) * v0); in transformations()
112 VERIFY_IS_APPROX(cos(a)*v0.squaredNorm(), v0.dot(AngleAxisx(a, v0.unitOrthogonal()) * v0)); in transformations()
114 m = AngleAxisx(a, v0.normalized()).toRotationMatrix().adjoint(); in transformations()
115 VERIFY_IS_APPROX(Matrix3::Identity(), m * AngleAxisx(a, v0.normalized())); in transformations()
116 VERIFY_IS_APPROX(Matrix3::Identity(), AngleAxisx(a, v0.normalized()) * m); in transformations()
119 q1 = AngleAxisx(a, v0.normalized()); in transformations()
[all …]
Dgeo_quaternion.cpp54 typedef AngleAxis<Scalar> AngleAxisx; in quaternion() typedef
80 q1 = AngleAxisx(a, v0.normalized()); in quaternion()
81 q2 = AngleAxisx(a, v1.normalized()); in quaternion()
84 Scalar refangle = abs(AngleAxisx(q1.inverse()*q2).angle()); in quaternion()
106 AngleAxisx aa = AngleAxisx(q1); in quaternion()
115 VERIFY_IS_NOT_APPROX(q1 * v1, Quaternionx(AngleAxisx(aa.angle()*2,aa.axis())) * v1); in quaternion()
154 q1 = AngleAxisx(a, v0.normalized()); in quaternion()
155 q2 = AngleAxisx(b, v1.normalized()); in quaternion()
158 q1 = AngleAxisx(b, v1.normalized()); in quaternion()
159 q2 = AngleAxisx(b+Scalar(M_PI), v1.normalized()); in quaternion()
[all …]