FerretEngine/src/Utils/FeMath.cs
/// <summary>
/// Performs a bilinear interpolation between four points
/// </summary>
/// <param name="botLeft">Bottom-left point</param>
/// <param name="botRight">Bottom-right point</param>
/// <param name="topLeft">Top-left point</param>
/// <param name="topRight">Top-right point</param>
/// <param name="xPercent"></param>
/// <param name="yPercent"></param>
/// <returns></returns>
Performs a bilinear interpolation between four points
Performs a bilinear interpolation between four points
[MethodImpl(MethodImplOptions.AggressiveInlining)]
        public static float Blerp(float botLeft, float botRight, float topLeft, float topRight, float xPercent, float yPercent) {
            return Lerp(
                Lerp(botLeft, botRight, xPercent), 
                Lerp(topLeft, topRight, xPercent), 
                yPercent
            );
        }
[ MethodImpl ( MethodImplOptions . AggressiveInlining ) ] public static float Blerp ( float botLeft , float botRight , float topLeft , float topRight , float xPercent , float yPercent ) { return Lerp ( Lerp ( botLeft , botRight , xPercent ) , Lerp ( topLeft , topRight , xPercent ) , yPercent ) ; }
Performs a bilinear interpolation between four points
Performs a bilinear interpolation between four points
None
botLeft
float
None
botRight
float
None
topLeft
float
None
topRight
float
None
xPercent
float
None
yPercent
float
None