Original Post
This is probably going to seem like a no-brainer to some people. Basically, I'm trying to linear interpolate a 2D triangle where each point has a certain value (z). I found this set of linear equations that I need to solve: Ax0 + By0 + C = z0 Ax1 + By1 + C = z1 Ax2 + By2 + C = z2 Now apparantly I can determine A, B, and C if I know all instances of x, y, and z. However, my math skills have steadily degraded since high school. I'm trying substitution, but I'm not even sure its going to get me anywhere. C = z0 - Ax0 - By0 Ax1 + By1 + (z0 - Ax0 - By0) = z1 Ax1 - Ax0 + By1 - By0 = z1 - z0 By1 - By0 = Ax0 - Ax1 + z1 - z0 Now I was hoping to extract B somehow so I could plug it into that last equation, but I'm not sure how to do this. Should I even be approaching it from this angle?