aboutsummaryrefslogtreecommitdiff
path: root/Client/Source/Phy2D/Common
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Source/Phy2D/Common')
-rw-r--r--Client/Source/Phy2D/Common/Type.h8
1 files changed, 6 insertions, 2 deletions
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