Home | History | Annotate | Download | only in ceres

Lines Matching refs:Quaternion

32 // theory, the unittests for the quaternion class should be type parameterized
33 // to make for easier testing of instantiations of the quaternion class, but it
40 #include "util/math/quaternion.h"
50 // quaternion elements are derivative parameters.
70 Quaternion<J> a, b;
73 Quaternion<double> double_a, double_b;
78 Quaternion<J> c = a * b;
79 Quaternion<double> double_c = double_a * double_b;
89 Quaternion<J> c = Quaternion<J>::Slerp(a, b, fraction);
90 Quaternion<double> double_c =
91 Quaternion<double>::Slerp(double_a, double_b, fraction.a);
109 void ExpectQuaternionsClose(const Quaternion<J>& x, const Quaternion<J>& y) {
118 Quaternion<J> direct = Quaternion<J>::Slerp(a, b, J(0.75));
121 Quaternion<J> intermediate = Quaternion<J>::Slerp(a, b, J(0.5));
122 Quaternion<J> indirect = Quaternion<J>::Slerp(intermediate, b, J(0.5));
156 Quaternion<J> between_x_and_y = Quaternion<J>::RotationBetween(x, y);
168 // Rotate via a quaternion.
187 // Rotate via a quaternion.