ssapy_toolkit.Compute.segment_intersection

Functions

segment_intersects_sphere(p0, p1[, radius, ...])

Vectorized check: does the segment p0->p1 intersect a sphere? p0, p1: shape (..., 3); center: (3,) or broadcastable; units match radius.

ssapy_toolkit.Compute.segment_intersection.segment_intersects_sphere(p0, p1, radius=6378137.0, center=(0.0, 0.0, 0.0), atol=0.0)[source]

Vectorized check: does the segment p0->p1 intersect a sphere? p0, p1: shape (…, 3); center: (3,) or broadcastable; units match radius. Returns a bool or array of bools.