From 4193fcb473567970ab1c223949626e0ed0971916 Mon Sep 17 00:00:00 2001 From: Matthew Date: Wed, 3 Sep 2025 06:06:14 +1000 Subject: [PATCH] rename mix to lerp --- math.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/math.d b/math.d index d6ba348..7682356 100644 --- a/math.d +++ b/math.d @@ -922,7 +922,7 @@ Inverse(Mat4 mat) } pragma(inline) f32 -Mix(f32 x, f32 y, f32 a) +Lerp(f32 x, f32 y, f32 a) { return x * (1 - a) + y * a; } @@ -937,7 +937,7 @@ pragma(inline) f32 Remap(f32 v, f32 in_min, f32 in_max, f32 out_min, f32 out_max) { f32 t = InverseLerp(v, in_min, in_max); - return Mix(out_min, out_max, t); + return Lerp(out_min, out_max, t); } unittest