diff options
| author | chai <chaifix@163.com> | 2021-11-30 23:50:01 +0800 | 
|---|---|---|
| committer | chai <chaifix@163.com> | 2021-11-30 23:50:01 +0800 | 
| commit | 84d961f754c905b37420f4d1b3fee8f4e523e58a (patch) | |
| tree | aa3669ac285f7186ecd6a26f874da9bba765178b /Client/Source/Phy2DLite/Tests/test_math.cpp | |
| parent | 9e0e01b7f4375063f06e494113187d48614628e0 (diff) | |
+phy2d lite
Diffstat (limited to 'Client/Source/Phy2DLite/Tests/test_math.cpp')
| -rw-r--r-- | Client/Source/Phy2DLite/Tests/test_math.cpp | 23 | 
1 files changed, 23 insertions, 0 deletions
| diff --git a/Client/Source/Phy2DLite/Tests/test_math.cpp b/Client/Source/Phy2DLite/Tests/test_math.cpp new file mode 100644 index 0000000..e047508 --- /dev/null +++ b/Client/Source/Phy2DLite/Tests/test_math.cpp @@ -0,0 +1,23 @@ +#include "test.h" +#if TEST == TEST_MATH + +#include <iostream> + +#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 | 
