Skip to content

Commit

Permalink
Update src/restruct_poc/math/quaternion_operations.hpp
Browse files Browse the repository at this point in the history
Co-authored-by: Derek Slaughter <deslaughter@gmail.com>
  • Loading branch information
ddement and deslaughter authored Jul 30, 2024
1 parent e02baac commit 9cf4a09
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/restruct_poc/math/quaternion_operations.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,7 @@ KOKKOS_INLINE_FUNCTION void QuaternionCompose(
qn(3) = q1(0) * q2(3) + q1(1) * q2(2) - q1(2) * q2(1) + q1(3) * q2(0);
}

inline std::array<double, 4> QuaternionCompose(
const std::array<double, 4>& q1, const std::array<double, 4>& q2
) {
inline Array_4 QuaternionCompose(const Array_4& q1, const Array_4& q2) {
auto qn = std::array<double, 4>{};
qn[0] = q1[0] * q2[0] - q1[1] * q2[1] - q1[2] * q2[2] - q1[3] * q2[3];
qn[1] = q1[0] * q2[1] + q1[1] * q2[0] + q1[2] * q2[3] - q1[3] * q2[2];
Expand Down

0 comments on commit 9cf4a09

Please sign in to comment.