15 #ifndef GEOMETRY__QUATERNION__GET_ANGLE_DIFFERENCE_HPP_
16 #define GEOMETRY__QUATERNION__GET_ANGLE_DIFFERENCE_HPP_
18 #include <Eigen/Geometry>
26 typename T, std::enable_if_t<std::conjunction_v<IsLikeQuaternion<T>>, std::nullptr_t> =
nullptr>
29 const Eigen::Quaterniond q1(quat1.w, quat1.x, quat1.y, quat1.z);
30 const Eigen::Quaterniond q2(quat2.w, quat2.x, quat2.y, quat2.z);
32 const Eigen::AngleAxisd delta(q1.inverse() * q2);
34 return std::abs(delta.angle());
auto getAngleDifference(const T &quat1, const T &quat2) -> double
Definition: get_angle_difference.hpp:27
Definition: bounding_box.hpp:32