A point inside a triangle can be expressed as a weighted average of its vertices. The nonnegative weights sum to one. Each weight equals the area of the subtriangle opposite that vertex divided by the whole triangle’s area, linking interpolation to geometry.三角形内部的点可以写成三个顶点的加权平均,三个权重非负且总和为一。每个权重,恰好等于该顶点对面的子三角形面积占总面积的比例,因此也能用面积来理解插值。
The white point moves inside the fixed triangle. Green, gold and cyan subtriangles lie opposite vertices , respectively. Their changing area fractions are the three weights printed below. The sum stays one even though the displayed rounded values may not sum exactly.白点在固定三角形内部移动。绿色、金色和青色子三角形分别位于顶点 的对面,下方显示各自的面积占比,也就是三个权重。实际权重之和始终为一,显示值因四舍五入可能略有差异。