The classic approach from computational geometry is to triangulate and then to the location point, but it’s much easier to just use the kd tree , placing the triangles that intersect the dividing line of the internal tree with node so that they can be checked on the way down to the leaves.
k-d . (x y, ), , , , . , . , . (, ) .
, , . , , . , .