Fixed a bug in CONVERT_1D_2D() macro (in Defines.hpp)

This commit is contained in:
OmniaX 2024-09-02 09:58:37 +02:00
parent d81b8a1d99
commit 9892dc7745
2 changed files with 2 additions and 2 deletions

View file

@ -1 +1 @@
1864 1866

View file

@ -57,7 +57,7 @@
#define MAX(n1, n2) std::max(n1, n2) #define MAX(n1, n2) std::max(n1, n2)
#define MIN(n1, n2) std::min(n1, n2) #define MIN(n1, n2) std::min(n1, n2)
#define PROPORTION(w, x, y) ((x * w) / y) #define PROPORTION(w, x, y) ((x * w) / y)
#define CONVERT_1D_2D(i, width) IPoint(i % width, i / width) #define CONVERT_1D_2D(i, width) ostd::IPoint(i % width, i / width)
#define CONVERT_2D_1D(x, y, width) (x + width * y) #define CONVERT_2D_1D(x, y, width) (x + width * y)
#define PRINT(data) std::cout << data #define PRINT(data) std::cout << data
#define PRINTLN(data) std::cout << data << "\n" #define PRINTLN(data) std::cout << data << "\n"