You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/libraries/System.Private.CoreLib/src/System/Numerics/IFloatingPointIeee754.cs
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -72,6 +72,14 @@ public interface IFloatingPointIeee754<TSelf>
72
72
/// <returns>The integer logarithm of <paramref name="x" />.</returns>
73
73
staticabstractintILogB(TSelfx);
74
74
75
+
/// <summary>Performs a linear interpolation between two values based on the given weight.</summary>
76
+
/// <param name="value1">The first value, which is intended to be the lower bound.</param>
77
+
/// <param name="value2">The second value, which is intended to be the upper bound.</param>
78
+
/// <param name="amount">A value, intended to be between 0 and 1, that indicates the weight of the interpolation.</param>
79
+
/// <returns>The interpolated value.</returns>
80
+
/// <remarks>This method presumes inputs are well formed and does not validate that <c>value1 < value2</c> nor that <c>0 <= amount <= 1</c>.</remarks>
Copy file name to clipboardExpand all lines: src/libraries/System.Runtime.InteropServices/tests/System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/NFloatTests.cs
0 commit comments