summaryrefslogtreecommitdiff
path: root/Runtime/Math/MathHelper.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-11-03 18:52:30 +0800
committerchai <chaifix@163.com>2021-11-03 18:52:30 +0800
commit08ddd44b634d4da78edd0964f539a310544c7883 (patch)
tree108317d9138c3e8a19f3cc3f2ffcfba4768f22d5 /Runtime/Math/MathHelper.h
parent6f62a3d5ad405dbab5ac031fb8eeb03bdb395904 (diff)
! UI9Slicing
Diffstat (limited to 'Runtime/Math/MathHelper.h')
-rw-r--r--Runtime/Math/MathHelper.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Runtime/Math/MathHelper.h b/Runtime/Math/MathHelper.h
index 3f8754a..c41eec9 100644
--- a/Runtime/Math/MathHelper.h
+++ b/Runtime/Math/MathHelper.h
@@ -9,3 +9,6 @@
#define clamp(v, lo, hi)\
max((lo), min((v), (hi)))
+// ÆæÊý·µ»Ø1£¬·ñÔò0
+#define odd(n) \
+(((n)&1)?1:0)