diff options
Diffstat (limited to 'Client/Source/Phy2D/Tests/test_math.cpp')
-rw-r--r-- | Client/Source/Phy2D/Tests/test_math.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Client/Source/Phy2D/Tests/test_math.cpp b/Client/Source/Phy2D/Tests/test_math.cpp index e7642c1..f88170d 100644 --- a/Client/Source/Phy2D/Tests/test_math.cpp +++ b/Client/Source/Phy2D/Tests/test_math.cpp @@ -4,16 +4,17 @@ #include <iostream>
#include "../Common/Math.h"
+#include "fix32/fix32.hpp"
-using namespace Phy2D;
using namespace std;
int main(int argc, char **argv)
{
- Vec2 a = Vec2(1.f, 2.f);
- Vec2 b = a;
+ Fix32 a = 1.3;
+ Fix32 b = 2.4;
+ Fix32 c = a * b;
- cout << (a+b).ToString();
+ cout << (double)c;
getchar();
|