Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(1) | Call(1) | Derive(0) | Import(0)
Intersect a polygon and a ray @type poly_points: List @param poly_points: The list of points in the polygon @type p1: Vector @param p1: The starting point of the ray @type p2: Vector @param p2: The ending point of the ray(more...)
src/p/y/Py2D-HEAD/py2d/FOV.py Py2D(Download)
# intersect visible point with obstructors and boundary polygon intersections = set(py2d.Math.intersect_linesegs_ray(obs_segs, eye, c) + py2d.Math.intersect_poly_ray(boundary.points, eye, c)) intersections = [ip for ip in intersections if ip != c and boundary.contains_point(ip)]