Method and electronic device for determining whether a point lies within a polygon in a multidimensional space
AssigneeYandex Europe AG
InventorAnton Vasilyevich KORZUNOV
Life of this patent
Estimating the term…
Loading patent…
AssigneeYandex Europe AG
InventorAnton Vasilyevich KORZUNOV
Estimating the term…
A computer-implemented method for determining whether a point lies within a first polygon in a multidimensional space and an electronic device for carrying out the method is disclosed. The method comprises accessing first polygon coordinates defining each of a position and a shape of the first polygon in the multidimensional space; accessing the point coordinates defining the position of the point in the multidimensional space; identifying regions of the multidimensional space each encompassing a respective portion of the first polygon coordinates, the regions approximating the first polygon; and storing, in a non-transitory computer-readable medium, region coordinates of at least one of the regions; whereby an analysis of the region coordinates and point coordinates is executable to generate an indication that the point lies within the first polygon and an indication that the point does not lie within the first polygon. Some implementations comprise executing the analysis and providing the indication.
-5. (canceled)
A computer-implemented method for determining whether a point lies within a first polygon in a multidimensional space, the method executable by a processor of a device, the method comprising:
The method of claim 1, further comprising generating the indication that the point lies within the first polygon if the number of times the ray projecting from the point towards any direction intersects any of the plurality of regions is an odd number.
The method of claim 1, further comprising generating the indication that the point does not lie within the first polygon if the number of times the ray projecting from the point towards any direction intersects any of the plurality of regions is an even number.
The method of claim 1, wherein each one of the regions consists of all points no further than a boundary distance from a line approximating the respective portion of the first polygon of the one of the regions, the boundary distance being a shortest distance from the line to a point most distant from the line on the respective portion of the first polygon.
The method of claim 1, wherein the multidimensional space has only two dimensions, and each one of the regions is a respective area of the multidimensional space consisting of:
A computer-implemented method for determining whether a point lies within a first polygon in a multidimensional space, the method executable by a processor of a device, the method comprising:
A computer-implemented method for determining whether a point lies within a first polygon in a multidimensional space, the method executable by a processor of a device, the method comprising:
-34. (canceled)
Dependencies are inferred from the claim text.