Expand description
Spatial analysis primitives on S².
Pure geometry operating on SphericalPoint and [f64; 3] unit vectors.
No embedding or category knowledge — those live in sphereql-embed.
Covers: antipodal maps, spherical cap areas and intersections, great circle arc geometry, spherical Voronoi tessellation, spherical excess, lune containment, and Monte Carlo coverage estimation.
Structs§
- Coverage
Report - Result of a sphere coverage analysis.
- Pairwise
Overlap - Voronoi
Cell - A cell in the spherical Voronoi diagram.
Enums§
- Lune
Side - Which side of an angular bisector a point falls on.
Functions§
- angular_
bisector_ normal - Returns the unit normal of the angular bisector plane between
aandb. - antipode
- Returns the antipodal point of
pon S² (angular distance π). - cap_
exclusivity - Exclusivity: fraction of a cap’s area not overlapped by any other cap. Returns [0, 1]. 1.0 = fully exclusive.
- cap_
intersection_ area - Solid angle of the intersection of two spherical caps.
- cap_
solid_ angle - Solid angle of a spherical cap with half-angle
alpha(radians). - curvature_
signature - Curvature signature: distribution of spherical excesses across all
triples that include the point at
target. Sorted ascending. - distance_
to_ great_ circle_ arc - Angular distance from
pointto the nearest point on the great circle arc fromarc_starttoarc_end. - estimate_
coverage - Estimates sphere coverage via Monte Carlo sampling.
- geodesic_
density_ profile - Samples the great circle arc at
num_samplesequally spaced points and counts how many items inpointslie withinradiusof each sample. - geodesic_
deviation - Max angular distance from any interior path waypoint to the direct great circle arc between first and last waypoints.
- geodesic_
sweep - Finds all indices in
pointswithinepsilonradians of the great circle arc fromarc_starttoarc_end. - lune_
classify - Determines which side of the angular bisector plane between
aandbapointlies on. - pairwise_
overlaps - Computes pairwise cap overlaps, sorted by descending intersection area.
- region_
coherence - Measures how coherently a set of points clusters near a target on S².
- spherical_
excess - Spherical excess (= area) of a triangle on S² with vertices a, b, c.
- spherical_
voronoi - Computes a spherical Voronoi tessellation from generator points.
- void_
distance - Angular distance from
pointto the nearest cap boundary.