Isosurface.DualMarchingSquares.QuadtreeNode.Interpolate C# (CSharp) Method

Interpolate() private static method

private static Interpolate ( float f00, float f01, float f10, float f11, Vector2 position ) : float
f00 float
f01 float
f10 float
f11 float
position Vector2
return float
        private static float Interpolate(float f00, float f01, float f10, float f11, Vector2 position)
        {
            float m_x = 1.0f - position.X;
            float m_y = 1.0f - position.Y;

            return f00 * m_x * m_y +
                f01 * m_x * position.Y +
                f10 * position.X * m_y +
                f11 * position.X * position.Y;
        }