mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-26 13:09:48 +01:00
vector: restore cmath include after 438d063ec6
(#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); ~~~~~^
This commit is contained in:
parent
b3a86952cf
commit
f1ad270ff8
1 changed files with 1 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
#include "Vector2D.hpp"
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
|
||||
Vector2D::Vector2D(double xx, double yy) {
|
||||
x = xx;
|
||||
|
|
Loading…
Reference in a new issue