Previous | Next --- Slide 28 of 92
Back to Lecture Thumbnails
szzheng

I may have missed it, but how do we calculate alpha, beta, and gamma?

anon

alpha = (distance of x from line cb) / (distance of a from line cb)

beta = (distance of x from line ca) / (distance of b from line ca)

gamma = (distance of x from line ab) / (distance of c from line ab)

We can note that this calculation is similar to the calculation on slide 26 where a and b had the same color.

In lecture, it was pointed out that calculating the distance from the point to the edges can be performed using the normal vector to the edges which is the same operation we used when determining whether a point was inside a triangle.

kmc

Try reading this:

https://www.doc.ic.ac.uk/~dfg/graphics/graphics2010/GraphicsLecture08.pdf