From d7caf1e6b5b6c169144b5cf06af5bda68cd17814 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 30 Jul 2024 21:51:31 +1000 Subject: [PATCH] AP_Math: remove method operator remove the metho operator from the class. This means this will no longer work: Quaternion q{0,1,2,3}; q(5,6,7,8); .... that used to set the quaternion componets, but is an odd / atypical syntax to use --- libraries/AP_Math/quaternion.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/libraries/AP_Math/quaternion.h b/libraries/AP_Math/quaternion.h index 00f29d0898..45b0f612df 100644 --- a/libraries/AP_Math/quaternion.h +++ b/libraries/AP_Math/quaternion.h @@ -50,15 +50,6 @@ public: { } - // function call operator - void operator()(const T _q1, const T _q2, const T _q3, const T _q4) - { - q1 = _q1; - q2 = _q2; - q3 = _q3; - q4 = _q4; - } - // check if any elements are NAN bool is_nan(void) const WARN_IF_UNUSED {