From fdd228071a3112aeebda20766c7df3b20b8651aa Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 2 Dec 2021 14:44:36 +0800 Subject: +Fix32 --- Client/Source/Phy2D/Tests/test_math.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (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 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 #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(); -- cgit v1.1-26-g67d0