summaryrefslogtreecommitdiff
path: root/Runtime/Math
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-10-30 22:59:42 +0800
committerchai <chaifix@163.com>2021-10-30 22:59:42 +0800
commit26f05c6e3dcac9995345fb5a2b031be7e3ea79e9 (patch)
treefc32c3e9d235817df0be331a6100b7f8263facab /Runtime/Math
parentc3e259f4d29e9bdcb73617ad8e4d71f117b4d289 (diff)
*TextGenerator
Diffstat (limited to 'Runtime/Math')
-rw-r--r--Runtime/Math/Math.h4
-rw-r--r--Runtime/Math/Rect.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/Runtime/Math/Math.h b/Runtime/Math/Math.h
index 370b91c..7f61544 100644
--- a/Runtime/Math/Math.h
+++ b/Runtime/Math/Math.h
@@ -5,3 +5,7 @@
#include "Vector4.h"
#include "Matrix44.h"
#include "FloatConversion.h"
+#include "Rect.h"
+
+#define max(a, b)\
+(a)>(b)?(a):(b)
diff --git a/Runtime/Math/Rect.h b/Runtime/Math/Rect.h
index 80170d6..8e7dae6 100644
--- a/Runtime/Math/Rect.h
+++ b/Runtime/Math/Rect.h
@@ -4,6 +4,6 @@ namespace Internal
{
struct Rect
{
- int x, y, width, height;
+ float x, y, width, height;
};
} \ No newline at end of file