intersects

spherical_geometry.great_circle_arc.intersects(A, B, C, D)[source]

Returns True if the great circle arcs between AB and CD intersect. Either A and B or C and D may be arrays of points, but not both.

Parameters:
A, B(x, y, z) triples or Nx3 arrays of triples

Endpoints of the first great circle arc.

C, D(x, y, z) triples or Nx3 arrays of triples

Endpoints of the second great circle arc.

Returns:
intersectsbool or array of bool

If the given arcs intersect, the intersection is returned as True.