From f4d90e3e6cd76c148a707ec1d3ebcef980dbcb9a Mon Sep 17 00:00:00 2001 From: William Emfinger Date: Wed, 15 Jul 2026 10:50:53 -0500 Subject: [PATCH] fix(math): fix missing include in fast math; update piecewise-linear to use .empty for clarity --- components/math/include/fast_math.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/math/include/fast_math.hpp b/components/math/include/fast_math.hpp index b4d3f2569..005cb487d 100644 --- a/components/math/include/fast_math.hpp +++ b/components/math/include/fast_math.hpp @@ -5,8 +5,8 @@ #include #include #include +#include #include -#include namespace espp { /** @@ -102,7 +102,7 @@ template int sgn(T x) { return (T(0) < x) - (x < T(0)); } */ [[maybe_unused]] static float piecewise_linear(std::span> points, float x) { - if (points.size() == 0) { + if (points.empty()) { return 0.0f; } if (x <= points.front().first) {