Two very common variables that often rely on this interpolation are the triangle normal and texture coordinates.
三角形的法向量和纹理坐标是很常见的两种依赖插值变量。
And just as with variables, you should use some common sense, some style here, and the function's name should X Y communicate what it does, calling it X or Y or Z is generally not all that helpful.
就像变量,你使用一些常识,一些类型,和函数名需要,传达它所做的事情,把它叫做,或者Z通常是没有什么用处的。
应用推荐