diff options
author | chai <chaifix@163.com> | 2021-12-02 14:44:36 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-12-02 14:44:36 +0800 |
commit | fdd228071a3112aeebda20766c7df3b20b8651aa (patch) | |
tree | edc6e05bda6c537582235dbe110e3ed783e0e36a /Client/Source/Phy2D/Tests/test_math.cpp | |
parent | b1d4e9866de19c70174553e543e81ef4473dee6c (diff) |
+Fix32
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();
|