From f0807fc44dde14531759306317611bab87c8fccf Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 19 Oct 2020 09:13:58 +0800 Subject: +gamelab proj --- Runtime/Math/AABB.h | 0 Runtime/Math/Vector2.cpp | 0 Runtime/Math/Vector2.h | 17 +++++++++++++++++ Runtime/Math/Vector3.cpp | 1 + Runtime/Math/Vector3.h | 18 ++++++++++++++++++ 5 files changed, 36 insertions(+) create mode 100644 Runtime/Math/AABB.h create mode 100644 Runtime/Math/Vector2.cpp create mode 100644 Runtime/Math/Vector2.h create mode 100644 Runtime/Math/Vector3.cpp create mode 100644 Runtime/Math/Vector3.h (limited to 'Runtime/Math') diff --git a/Runtime/Math/AABB.h b/Runtime/Math/AABB.h new file mode 100644 index 0000000..e69de29 diff --git a/Runtime/Math/Vector2.cpp b/Runtime/Math/Vector2.cpp new file mode 100644 index 0000000..e69de29 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 -- cgit v1.1-26-g67d0