aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-11-02 10:55:28 -0700
committerChris Robinson <[email protected]>2023-11-04 10:11:19 -0700
commit34cde4b55f87d775e79c1f4cbd6b14d129b1a949 (patch)
treee0f9b82a85adf242e394ef2076780439d5640d90 /common
parent6420bc86cd972fd544a74bdbbc0e882d284046be (diff)
Remove an unnecessary struct member
Diffstat (limited to 'common')
-rw-r--r--common/alnumeric.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/alnumeric.h b/common/alnumeric.h
index 759dbc12..6281b012 100644
--- a/common/alnumeric.h
+++ b/common/alnumeric.h
@@ -89,6 +89,9 @@ constexpr inline float cubic(float val1, float val2, float val3, float val4, flo
return val1*a0 + val2*a1 + val3*a2 + val4*a3;
}
+constexpr inline double lerpd(double val1, double val2, double mu) noexcept
+{ return val1 + (val2-val1)*mu; }
+
/** Find the next power-of-2 for non-power-of-2 numbers. */
inline uint32_t NextPowerOf2(uint32_t value) noexcept