From 08ddd44b634d4da78edd0964f539a310544c7883 Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 3 Nov 2021 18:52:30 +0800 Subject: ! UI9Slicing --- Runtime/Math/MathHelper.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Runtime/Math/MathHelper.h') 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) -- cgit v1.1-26-g67d0