From 073e70c03000973e26598f40760a30d6292e1fac Mon Sep 17 00:00:00 2001 From: dcdemen Date: Tue, 30 Jul 2024 15:04:08 -0600 Subject: [PATCH] clang-format --- src/restruct_poc/math/quaternion_operations.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/restruct_poc/math/quaternion_operations.hpp b/src/restruct_poc/math/quaternion_operations.hpp index 3b5dbc0a..94a0aa8c 100644 --- a/src/restruct_poc/math/quaternion_operations.hpp +++ b/src/restruct_poc/math/quaternion_operations.hpp @@ -59,9 +59,7 @@ KOKKOS_INLINE_FUNCTION void RotateVectorByQuaternion( (q(0) * q(0) - q(1) * q(1) - q(2) * q(2) + q(3) * q(3)) * v(2); } -inline std::array RotateVectorByQuaternion( - const Array_4& q, const Array_3& v -) { +inline std::array RotateVectorByQuaternion(const Array_4& q, const Array_3& v) { auto v_rot = std::array{}; v_rot[0] = (q[0] * q[0] + q[1] * q[1] - q[2] * q[2] - q[3] * q[3]) * v[0] + 2. * (q[1] * q[2] - q[0] * q[3]) * v[1] + 2. * (q[1] * q[3] + q[0] * q[2]) * v[2];