From 49063b079e3eccbbc3f5330ee3e5e88bb7796f70 Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 6 Dec 2021 09:57:05 +0800 Subject: *misc --- Client/Source/Phy2D/Common/Type.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Client/Source/Phy2D/Common') diff --git a/Client/Source/Phy2D/Common/Type.h b/Client/Source/Phy2D/Common/Type.h index c985d99..4c0088d 100644 --- a/Client/Source/Phy2D/Common/Type.h +++ b/Client/Source/Phy2D/Common/Type.h @@ -1,9 +1,13 @@ #include "fix32/fix32.hpp" +#include "libfixmath/libfixmath/fix16.hpp" namespace Phy2D { - using fixed = Fix32; + // Phy2D里的数值类型用real表示 + using real = Fix32; -} + // constants + static real kPI = real(1ll); +} \ No newline at end of file -- cgit v1.1-26-g67d0