summaryrefslogtreecommitdiff
path: root/Runtime/Math/MathHelper.h
diff options
context:
space:
mode:
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)