Hey!

I'm not sure I'm using the correct mathematical terms here but -

Lets say I have a polygon (it can be any polygon, and let's assume it's blocked within a circle), and I also have a point inside this polygon (point M).

I know all points coodinates, and I want to know the weight of each point of the polygon (points A, B and C) based on M position.

For example, if M is in the middle, each point weight will be 33.3%, if M is on point A, point A weight will be 100%, and points B and C will be 0%.

Having trouble with this one Thanks in advance!