1

**Support / a point inside polygon**

« **on:**February 28, 2006, 09:28:05 pm »

I've got stuck with a math question.

How to determine Z coordinate for a point inside a polygon with given x and y coordinates ?

Assume we have SimpleVector p1, p2, p3 - vertices of the polygon.

then we have float x, float y - coordinates of point inside this polygon. How do we find Z coordinate that belongs to this polygon ?

Spent 30 minutes trying to figure this out and finally gave up. .. any suggestions ?

How to determine Z coordinate for a point inside a polygon with given x and y coordinates ?

Assume we have SimpleVector p1, p2, p3 - vertices of the polygon.

then we have float x, float y - coordinates of point inside this polygon. How do we find Z coordinate that belongs to this polygon ?

Spent 30 minutes trying to figure this out and finally gave up. .. any suggestions ?