summaryrefslogtreecommitdiff
path: root/indra/llmath/llmath.h
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2024-09-26 09:42:14 -0400
committerNat Goodspeed <nat@lindenlab.com>2024-09-26 09:42:14 -0400
commit6400284278071b774d2837d62142a15b94120198 (patch)
treed9822d9c9584b9634372cd9109dd271d9f44c91a /indra/llmath/llmath.h
parent015ff3d6083a6ea6f7d9e30b22cfe080c81c04a5 (diff)
Ditch our own (conflicting) definition of the lerp() function.
Hoist `std::lerp()` into the global namespace instead.
Diffstat (limited to 'indra/llmath/llmath.h')
-rw-r--r--indra/llmath/llmath.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/indra/llmath/llmath.h b/indra/llmath/llmath.h
index fa315291a3..09b685a68b 100644
--- a/indra/llmath/llmath.h
+++ b/indra/llmath/llmath.h
@@ -358,10 +358,9 @@ inline F32 snap_to_sig_figs(F32 foo, S32 sig_figs)
return new_foo;
}
-inline F32 lerp(F32 a, F32 b, F32 u)
-{
- return a + ((b - a) * u);
-}
+// We used to define a simple lerp(F32, F32, F32) that probably predated
+// std::lerp(). By now, do we need our own definition any longer?
+using std::lerp;
inline F32 lerp2d(F32 x00, F32 x01, F32 x10, F32 x11, F32 u, F32 v)
{