From d8d7963b9b658799b806d516bbd6b44c4baa28f8 Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 24 Oct 2018 22:08:46 +0800 Subject: =?UTF-8?q?+=E7=B2=92=E5=AD=90=E7=B3=BB=E7=BB=9F=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/libjin/Math/je_math.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libjin/Math/je_math.h') diff --git a/src/libjin/Math/je_math.h b/src/libjin/Math/je_math.h index e7c3ec5..6a05c44 100644 --- a/src/libjin/Math/je_math.h +++ b/src/libjin/Math/je_math.h @@ -71,7 +71,7 @@ namespace JinEngine return a + t * (b - a); } - float lerp(float a, float b, float f) + inline float lerp(float a, float b, float f) { f = clamp(f, 0, 1); return a + f * (b - a); -- cgit v1.1-26-g67d0