From 9e0e01b7f4375063f06e494113187d48614628e0 Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 30 Nov 2021 22:25:37 +0800 Subject: +init --- Client/Source/Phy2D/Tests/test_math.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Client/Source/Phy2D/Tests/test_math.cpp (limited to 'Client/Source/Phy2D/Tests/test_math.cpp') diff --git a/Client/Source/Phy2D/Tests/test_math.cpp b/Client/Source/Phy2D/Tests/test_math.cpp new file mode 100644 index 0000000..e047508 --- /dev/null +++ b/Client/Source/Phy2D/Tests/test_math.cpp @@ -0,0 +1,23 @@ +#include "test.h" +#if TEST == TEST_MATH + +#include + +#include "../Common/Math.h" + +using namespace Phy2D; +using namespace std; + +int main(int argc, char **argv) +{ + Vec2 a = Vec2(1.f, 2.f); + Vec2 b = a; + + cout << (a+b).ToString(); + + getchar(); + + return 0; +} + +#endif \ No newline at end of file -- cgit v1.1-26-g67d0