from cxregions import *Detected IPython. Loading juliacall extension. See https://juliapy.github.io/PythonCall.jl/stable/compat/#IPython
Methods are provided to find intersections between all the specific subtypes of curve (i.e., not those with an externally provided parameterization). In the generic cases where the intersections consist of zero or more points, a vector of results is returned. In special circumstances of partially or wholly overlapping curves, a Curve subtype is returned.
There are also methods for finding the intersections between curves and paths, and between two paths. These return set unions over the curves of the path(s), returning a vector with complex element type or, if some overlaps occurred, mixed types.
Detected IPython. Loading juliacall extension. See https://juliapy.github.io/PythonCall.jl/stable/compat/#IPython
Circles and Arcs intersect at zero, one, or two points, or as an Arc.
intersection of c and a: [0.5-0.8660254j 0.5+0.8660254j]
type of b ∩ c: <class 'cxregions.curves.Arc'>
is b ∩ c approximately b? True
Segments and Lines intersect at zero or one point, or as a Line or Segment.
intersection of l and s: [0.+1.j]
intersection of l and s + 2j: []
intersection of s and Segment(-4-1j, 1j): Segment from (-2+0j) to 1j