From f1ad270ff8c78299e39e5f44176e9c99b6d5075f Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Mon, 29 May 2023 13:12:00 +0000 Subject: [PATCH] vector: restore cmath include after 438d063ec684 (#2394) src/helpers/Vector2D.cpp:27:26: error: no member named 'floor' in namespace 'std' return Vector2D(std::floor(x), std::floor(y)); ~~~~~^ src/helpers/Vector2D.cpp:27:41: error: no member named 'floor' in namespace 'std' return Vector2D(std::floor(x), std::floor(y)); ~~~~~^ src/helpers/Vector2D.cpp:37:17: error: no member named 'sqrt' in namespace 'std' return std::sqrt(dx * dx + dy * dy); ~~~~~^ --- src/helpers/Vector2D.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/helpers/Vector2D.cpp b/src/helpers/Vector2D.cpp index e93a856f..2d52eb9e 100644 --- a/src/helpers/Vector2D.cpp +++ b/src/helpers/Vector2D.cpp @@ -1,5 +1,6 @@ #include "Vector2D.hpp" #include +#include Vector2D::Vector2D(double xx, double yy) { x = xx;