https://github.com/ssloy/tinyrenderer/wiki/Lesson-2-Triangle-rasterization-and-back-face-culling
I am on lesson 2 of the "Opengl in 500 lines"
tutorial. I follow the part of the lesson in "The method I adopt for my code"
, but I don't understand this leap from
P = A + uAB-vector + vAC-vector
to
0-vector = uAB-vector + vAC-vector + PA-vector.
P = A + uAB + vAC
and you substractP
on both sides then you get0 = A + uAB + vAC - P
butA - P
can mean vectorPA
\$\endgroup\$