Home
last modified time | relevance | path

Searched refs:quaternion (Results 1 – 19 of 19) sorted by relevance

/external/ceres-solver/internal/ceres/
Drotation_test.cc200 double quaternion[4]; in TEST() local
202 AngleAxisToQuaternion(axis_angle, quaternion); in TEST()
203 EXPECT_THAT(quaternion, IsNormalizedQuaternion()); in TEST()
204 EXPECT_THAT(quaternion, IsNearQuaternion(expected)); in TEST()
212 double quaternion[4]; in TEST() local
214 AngleAxisToQuaternion(axis_angle, quaternion); in TEST()
215 EXPECT_THAT(quaternion, IsNormalizedQuaternion()); in TEST()
216 EXPECT_THAT(quaternion, IsNearQuaternion(expected)); in TEST()
224 double quaternion[4]; in TEST() local
226 AngleAxisToQuaternion(axis_angle, quaternion); in TEST()
[all …]
/external/ceres-solver/include/ceres/
Drotation.h86 void AngleAxisToQuaternion(const T* angle_axis, T* quaternion);
95 void QuaternionToAngleAxis(const T* quaternion, T* angle_axis);
223 inline void AngleAxisToQuaternion(const T* angle_axis, T* quaternion) { in AngleAxisToQuaternion() argument
234 quaternion[0] = cos(half_theta); in AngleAxisToQuaternion()
235 quaternion[1] = a0 * k; in AngleAxisToQuaternion()
236 quaternion[2] = a1 * k; in AngleAxisToQuaternion()
237 quaternion[3] = a2 * k; in AngleAxisToQuaternion()
244 quaternion[0] = T(1.0); in AngleAxisToQuaternion()
245 quaternion[1] = a0 * k; in AngleAxisToQuaternion()
246 quaternion[2] = a1 * k; in AngleAxisToQuaternion()
[all …]
/external/opencv3/modules/python/test/
Dtransformations.py1091 def euler_from_quaternion(quaternion, axes='sxyz'): argument
1099 return euler_from_matrix(quaternion_matrix(quaternion), axes)
1142 quaternion = numpy.empty((4, ), dtype=numpy.float64)
1144 quaternion[i] = cj*(cs + sc)
1145 quaternion[j] = sj*(cc + ss)
1146 quaternion[k] = sj*(cs - sc)
1147 quaternion[3] = cj*(cc - ss)
1149 quaternion[i] = cj*sc - sj*cs
1150 quaternion[j] = cj*ss + sj*cc
1151 quaternion[k] = cj*cs - sj*sc
[all …]
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/bullet/
DOcclusionBuffer.java102 public Quaternion mulAdd (final Quaternion quaternion, float scalar) { in mulAdd() argument
103 this.x += quaternion.x * scalar; in mulAdd()
104 this.y += quaternion.y * scalar; in mulAdd()
105 this.z += quaternion.z * scalar; in mulAdd()
106 this.w += quaternion.w * scalar; in mulAdd()
115 public Quaternion set (Quaternion quaternion) { in set() argument
116 return (Quaternion)super.set(quaternion); in set()
129 public Quaternion sub (Quaternion quaternion) { in sub() argument
130 this.x -= quaternion.x; in sub()
131 this.y -= quaternion.y; in sub()
[all …]
/external/libgdx/gdx/src/com/badlogic/gdx/math/
DQuaternion.java54 public Quaternion (Quaternion quaternion) { in Quaternion() argument
55 this.set(quaternion); in Quaternion()
83 public Quaternion set (Quaternion quaternion) { in set() argument
84 return this.set(quaternion.x, quaternion.y, quaternion.z, quaternion.w); in set()
317 public Quaternion add(Quaternion quaternion){ in add() argument
318 this.x += quaternion.x; in add()
319 this.y += quaternion.y; in add()
320 this.z += quaternion.z; in add()
321 this.w += quaternion.w; in add()
DMatrix4.java100 public Matrix4 (Quaternion quaternion) { in Matrix4() argument
101 this.set(quaternion); in Matrix4()
135 public Matrix4 set (Quaternion quaternion) { in set() argument
136 return set(quaternion.x, quaternion.y, quaternion.z, quaternion.w); in set()
/external/chromium-trace/catapult/third_party/polymer/components/web-animations-js/src/
Dmatrix-decomposition.js185 var quaternion;
189 quaternion = [
197 quaternion = [
205 quaternion = [
213 quaternion = [
221 return [translate, scale, skew, quaternion, perspective];
/external/eigen/test/
Dgeo_quaternion.cpp45 template<typename Scalar, int Options> void quaternion(void) in quaternion() function
273 CALL_SUBTEST_1(( quaternion<float,AutoAlign>() )); in test_geo_quaternion()
275 CALL_SUBTEST_2(( quaternion<double,AutoAlign>() )); in test_geo_quaternion()
277 CALL_SUBTEST_3(( quaternion<float,DontAlign>() )); in test_geo_quaternion()
278 CALL_SUBTEST_4(( quaternion<double,DontAlign>() )); in test_geo_quaternion()
/external/ceres-solver/docs/source/
Dmodeling.rst37 the four components of the quaternion that define the pose of a
1144 quaternion. There, it is useful only to make updates orthogonal to
1145 that 4-vector defining the quaternion. One way to do this is to let
1150 :label: quaternion
1153 is the standard quaternion
1155 of :eq:`quaternion`.
1560 quaternion and matrix) we provide a handy set of templated
1564 .. function:: void AngleAxisToQuaternion<T>(T const* angle_axis, T* quaternion)
1567 quaternion.
1571 ``quaternion`` is a 4-tuple that will contain the resulting quaternion.
[all …]
Dtutorial.rst39 quaternion that define the pose of a camera. We refer to such a group
Dsolving.rst2257 four dimensional quaternion used to parameterize :math:`SO(3)`,
/external/vulkan-validation-layers/libs/glm/gtx/
Drotate_normalized_axis.inl92 …//return gtc::quaternion::cross(q, detail::tquat<T, P>(cos(AngleRad * T(0.5)), Tmp.x * fSin, Tmp.y…
Dquaternion.inl7 // File : glm/gtx/quaternion.inl
/external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/com/badlogic/gdx/math/
DMatrix4.java102 public Matrix4 (Quaternion quaternion) { in Matrix4() argument
103 this.set(quaternion); in Matrix4()
152 public Matrix4 set (Quaternion quaternion) { in set() argument
153 return set(quaternion.x, quaternion.y, quaternion.z, quaternion.w); in set()
/external/vulkan-validation-layers/libs/glm/gtc/
Depsilon.inl30 #include "quaternion.hpp"
Dtype_ptr.inl308 /// Return the address to the data of the quaternion input.
463 //! Build a quaternion from a pointer.
Dquaternion.inl24 /// @file glm/gtc/quaternion.inl
632 …//return gtc::quaternion::cross(q, detail::tquat<T, P>(cos(AngleRad * T(0.5)), Tmp.x * fSin, Tmp.y…
/external/eigen/doc/
DTutorialGeometry.dox10 …epresented by \ref AngleAxis "angle and axis" or by a \ref Quaternion "quaternion"), \ref Translat…
43 3D rotation as a \ref Quaternion "quaternion"</td><td>\code
/external/opencv3/doc/tutorials/calib3d/real_time_pose/
Dreal_time_pose.markdown736 // Convert estimated quaternion to rotation matrix