diff options
author | chai <chaifix@163.com> | 2021-12-06 09:57:05 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-12-06 09:57:05 +0800 |
commit | 49063b079e3eccbbc3f5330ee3e5e88bb7796f70 (patch) | |
tree | c531bc6c2e54afbe89eeffee98c680a2032001b6 /Client/Source/Phy2D/Common | |
parent | b30a3c8743d8837e4b1ef871d133ae5e7ef9a06b (diff) |
*misc
Diffstat (limited to 'Client/Source/Phy2D/Common')
-rw-r--r-- | Client/Source/Phy2D/Common/Type.h | 8 |
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 |