How this calculation works
Find the smallest angular cap covering normalized spatial directions inside an open hemisphere. Supporting directions and all-site coverage checks accompany its angular radius and unit-sphere area.
maximize_(||c||=1) min_i c·p_i;angular radius=acos(min_i c·p_i).A worked example
The four default directions have equal45degree separation from the positive z-axis. Their smallest enclosing cap is centered at(0,0,1),has angular radius45degrees and unit-sphere area2π(1−1/sqrt2).
Good to know
4–40 distinct nonzero3Ddirections,normalized explicitly. Candidate support sets of size1–3;only caps strictly smaller than a hemisphere supported. Antipodal/wider or unresolved configurations rejected. Floating support checks,no exact-predicate certificate.
Reference: Convex enclosing-set optimization reference (opens in a new tab) ↗
Angular coverage differs from a Euclidean enclosing ball
A spherical cap covers directions by their angle from a unit center direction. Its radius is an angle measured along the sphere,not the radius of a3Dball or the straight-line distance between two spatial points.
The same directional coverage can be applied to spheres of different physical radii. This calculator reports a unit-sphere cap area and an angular radius,leaving any physical area scaling to the separate multiplication by the square of the chosen sphere radius.
Compare this with the Spherical Voronoi cell area calculator from points on a sphere. Spherical Voronoi partitions the sphere but does not minimize a covering cap radius.
Normalize vectors before comparing directions
Input rows can have different positive lengths because the calculation normalizes every nonzero vector. Their magnitudes do not act as weights or change the desired angular position. A zero vector has no direction and is rejected.
Near-duplicate directions are also rejected to keep support candidates numerically resolved. The initial scope requires all points to fit strictly inside an open hemisphere. This avoids ambiguous wide-cap and antipodal cases that need a broader classification strategy.
Dot products turn the angular objective into support constraints
For unit vectors,the angle from c to p is arccos of their dot product. Minimizing the largest angle is therefore equivalent to maximizing the smallest dot product across all entered directions while keeping c unit length.
A candidate cap can be supported by one direction,a pair or three resolved directions in the supported hemisphere setting. The algorithm enumerates these small support sets and checks every candidate against every site,rather than trusting only the points used to construct it.
The symmetric four-direction example has an obvious center
After normalization,the four default vectors lie at the same height1/sqrt2 on the unit sphere and are symmetric around the z-axis. Center direction(0,0,1)therefore places each one at angle45degrees.
No smaller cap can cover opposite members of the ring because their separation already requires that half-angle. The unit-sphere area is2π times one minus cos45degrees,which independently checks the angular-to-area conversion used in the output.
Supports explain which observations limit the radius
The returned support indices identify directions that generated the selected candidate. Their angles should lie on the boundary up to numerical precision,while other observations may be strictly inside even if they were included in the original input.
Degenerate symmetric data can admit several support descriptions for the same cap. A particular pair or triple in the output is therefore a construction witness,not necessarily a unique minimal subset or an identification of special physical causes among the observations.
Coverage residuals are necessary numerical checks
The implementation compares every direction’s angular distance with the reported cap radius. The maximum excess should be negligible for a valid returned cap. This check catches a candidate whose local support fit fails to cover another entered site.
It is still a floating geometric calculation rather than an exact interval proof. When the best cap reaches or exceeds a hemisphere,the calculation stops with an unsupported-domain error instead of pretending that the narrower support argument covers every possible wide spherical configuration.
Keep the objective connected to the intended application
Directional coverage can describe an angular field of view or a cluster of orientations. A cap center is not the arithmetic mean of unnormalized vectors,and it is not generally the maximum-likelihood mean of a directional probability distribution.
Choose this page when worst-case angular coverage is the objective. Statistical concentration,fitting weights or geodesic path lengths require different data and methods. Preserve the normalization and hemisphere restriction alongside any exported radius or center direction.
A few questions, answered
Do vector lengths change the answer?
No. Each nonzero vector is normalized and only its direction is used.
Is the radius a Euclidean length?
No. It is an angular radius on the sphere.
Can it cover points requiring more than a hemisphere?
That wider-cap case is outside the supported scope and is rejected.
Are support indices unique?
Not always. Symmetric caps can have several equally valid support descriptions.