Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Check if two line segments intersect - this can conserve memory if we don't need the intersection points

@type p1: Vector
@param p1: The first point on the first line segment

@type p2: Vector
@param p2: The second point on the first line segment

@type q1: Vector(more...)

src/p/y/Py2D-HEAD/py2d/FOV.py   Py2D(Download)
			for line_segment in obs_segs:
				if py2d.Math.check_intersect_lineseg_lineseg( eye, p, line_segment[0], line_segment[1]):
					if line_segment[0] != p and line_segment[1] != p:
						return False
				p = boundary_intersection_points[i]
				if py2d.Math.distance_point_lineseg_squared(p, line_segment[0], line_segment[1]) > 0.0001 and py2d.Math.check_intersect_lineseg_lineseg(eye, p, line_segment[0], line_segment[1]):