Searched refs:quaternion (Results 1 - 9 of 9) sorted by relevance

/external/ceres-solver/internal/ceres/
H A Drotation_test.cc62 // double quaternion[4];
63 // EXPECT_THAT(quaternion, IsNormalizedQuaternion());
66 *result_listener << "Null quaternion";
86 *result_listener << "Null quaternion";
197 // Transforms a zero axis/angle to a quaternion.
200 double quaternion[4]; local
202 AngleAxisToQuaternion(axis_angle, quaternion);
203 EXPECT_THAT(quaternion, IsNormalizedQuaternion());
204 EXPECT_THAT(quaternion, IsNearQuaternion(expected));
212 double quaternion[ local
224 double quaternion[4]; local
234 double quaternion[4]; local
243 double quaternion[4] = { 1, 0, 0, 0 }; local
252 double quaternion[4] = { 0, 0, 1, 0 }; local
262 double quaternion[4] = { sqrt(3) / 2, 0, 0, 0.5 }; local
273 double quaternion[4] = { cos(theta/2), sin(theta/2.0), 0, 0 }; local
284 double quaternion[4] = { cos(theta/2), sin(theta/2.0), 0, 0 }; local
292 double quaternion[4]; local
331 double quaternion[4]; local
348 double quaternion[4]; local
697 J3 quaternion[4]; local
717 J3 quaternion[4]; local
735 J3 quaternion[4]; local
754 J4 quaternion[4] = { J4(c, 0), J4(s, 1), J4(0, 2), J4(0, 3) }; local
774 J4 quaternion[4] = { J4(c, 0), J4(s, 1), J4(0, 2), J4(0, 3) }; local
791 J4 quaternion[4] = { J4(1, 0), J4(0, 1), J4(0, 2), J4(0, 3) }; local
[all...]
/external/ceres-solver/include/ceres/
H A Drotation.h54 // Convert a value in combined axis-angle representation to a quaternion.
57 // and quaternion is a 4-tuple that will contain the resulting quaternion.
61 void AngleAxisToQuaternion(T const* angle_axis, T* quaternion);
63 // Convert a quaternion to the equivalent combined axis-angle representation.
64 // The value quaternion must be a unit quaternion - it is not normalized first,
70 void QuaternionToAngleAxis(T const* quaternion, T* angle_axis);
91 // The choice of rotation is such that the quaternion [1 0 0 0] goes to an
92 // identity matrix and for small a, b, c the quaternion [
150 AngleAxisToQuaternion(const T* angle_axis, T* quaternion) argument
179 QuaternionToAngleAxis(const T* quaternion, T* angle_axis) argument
[all...]
/external/eigen/test/
H A Dgeo_quaternion.cpp45 template<typename Scalar, int Options> void quaternion(void)
244 CALL_SUBTEST_1(( quaternion<float,AutoAlign>() ));
246 CALL_SUBTEST_2(( quaternion<double,AutoAlign>() ));
248 CALL_SUBTEST_3(( quaternion<float,DontAlign>() ));
249 CALL_SUBTEST_4(( quaternion<double,DontAlign>() ));
/external/ceres-solver/docs/
H A Dreference-overview.tex9 Where $f_i(\cdot)$ is a cost function that depends on the parameter blocks $\left[x_{i_1}, \hdots , x_{i_k}\right]$ and $\rho_i$ is a loss function. In most optimization problems small groups of scalars occur together. For example the three components of a translation vector and the four components of the quaternion that define the pose of a camera. We refer to such a group of small scalars as a Parameter Block. Of course a parameter block can just have a single parameter.
H A Dmodeling.tex361 is when camera rotations are parameterized using a quaternion. There,
363 the quaternion. One way to do this is to let $\Delta x$ be a 3
371 \label{eq:quaternion}
374 side is the standard quaternion product. \texttt{QuaternionParameterization} is an implementation of~\eqref{eq:quaternion}.
H A Dfaq.tex14 Most non-linear solvers we are aware of, define the problem and residuals in terms of scalars and it is possible to do this with Ceres also. However, it is our experience that in most problems small groups of scalars occur together. For example the three components of a translation vector and the four components of the quaternion that define the pose of a camera. Same is true for residuals, where it is common to have small vectors of residuals rather than just scalars. There are a number of advantages of using blocks. It saves on indexing information, which for large problems can be substantial. Blocks translate into contiguous storage in memory which is more cache friendly and last but not the least, it allows us to use SIMD/SSE based BLAS routines to significantly speed up various matrix operations.
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/objects/
H A DObjectHelper.java207 Quaternion quaternion = t.getRotation();
209 quaternion.toAxes(axes);
218 Quaternion quaternion = t.getRotation();
220 quaternion.toAxes(axes);
/external/jmonkeyengine/engine/src/core/com/jme3/math/
H A DMatrix3f.java687 * @param quaternion
688 * the quaternion to create a rotational matrix from.
691 public Matrix3f set(Quaternion quaternion) { argument
692 return quaternion.toRotationMatrix(this);
/external/jmonkeyengine/engine/src/core/com/jme3/scene/
H A DSpatial.java318 * @return the Spatial's world rotation quaternion.
800 * @param quaternion
803 public void setLocalRotation(Quaternion quaternion) { argument
804 localTransform.setRotation(quaternion);

Completed in 320 milliseconds