summaryrefslogtreecommitdiff
path: root/Runtime/Math
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2020-10-19 09:13:58 +0800
committerchai <chaifix@163.com>2020-10-19 09:13:58 +0800
commitf0807fc44dde14531759306317611bab87c8fccf (patch)
tree6e78fed61c16a70cda5fa732635f89f9faac9720 /Runtime/Math
parent639b34294ffc20721c66db46e59e07d9100ac4b8 (diff)
+gamelab proj
Diffstat (limited to 'Runtime/Math')
-rw-r--r--Runtime/Math/AABB.h0
-rw-r--r--Runtime/Math/Vector2.cpp0
-rw-r--r--Runtime/Math/Vector2.h17
-rw-r--r--Runtime/Math/Vector3.cpp1
-rw-r--r--Runtime/Math/Vector3.h18
5 files changed, 36 insertions, 0 deletions
diff --git a/Runtime/Math/AABB.h b/Runtime/Math/AABB.h
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/Runtime/Math/AABB.h
diff --git a/Runtime/Math/Vector2.cpp b/Runtime/Math/Vector2.cpp
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/Runtime/Math/Vector2.cpp
diff --git a/Runtime/Math/Vector2.h b/Runtime/Math/Vector2.h
new file mode 100644
index 0000000..7bf3987
--- /dev/null
+++ b/Runtime/Math/Vector2.h
@@ -0,0 +1,17 @@
+#ifndef VECTOR2_H
+#define VECTOR2_H
+
+class Vector2
+{
+public:
+ float x, y;
+
+ inline void Set(float x, float y)
+ {
+ this->x = x;
+ this->y = y;
+ }
+
+};
+
+#endif \ No newline at end of file
diff --git a/Runtime/Math/Vector3.cpp b/Runtime/Math/Vector3.cpp
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/Runtime/Math/Vector3.cpp
@@ -0,0 +1 @@
+
diff --git a/Runtime/Math/Vector3.h b/Runtime/Math/Vector3.h
new file mode 100644
index 0000000..041ffef
--- /dev/null
+++ b/Runtime/Math/Vector3.h
@@ -0,0 +1,18 @@
+#ifndef VECTOR3_H
+#define VECTOR3_H
+
+class Vector3
+{
+public:
+ float x, y, z;
+
+ inline void Set(float x, float y, float z)
+ {
+ this->x = x;
+ this->y = y;
+ this->z = z;
+ }
+
+};
+
+#endif \ No newline at end of file