diff options
Diffstat (limited to 'src/basic/math.hpp')
| -rw-r--r-- | src/basic/math.hpp | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/src/basic/math.hpp b/src/basic/math.hpp deleted file mode 100644 index a3e4b64..0000000 --- a/src/basic/math.hpp +++ /dev/null @@ -1,68 +0,0 @@ -#pragma once - - -#include <basic/defs.hpp> - -#include <cstddef> -#include <cstdint> - - -struct V2ST { - size_t x; - size_t y; - - bool operator==(V2ST &b); - bool operator==(const V2ST& other) const { - return x == other.x && y == other.y; - } -}; - -struct V2F32 { - float x; - float y; - - V2F32 operator/(float scalar); - V2F32 operator*(float scalar); - V2F32 operator+(V2F32 other); -}; - -struct V3F32 { - float x; - float y; - float z; - - V3F32 operator/(float scalar); - V3F32 operator*(float scalar); -}; - -struct V4F32 { - float x; - float y; - float z; - float w; - - V4F32 operator/(float scalar); - V4F32 operator*(float scalar); -}; - -struct V2I32 { - int32_t x; - int32_t y; - - bool operator==(V2I32 other); -}; - -struct Color { - float r; - float g; - float b; - float a; -}; - -struct RectF32 { - float x0; - float y0; - float x1; - float y1; -}; - |
