Shapes & spaces

Convex spherical polygon intersection calculator with solid angle area

Intersect two convex spherical polygons with minor great-circle edges.

Your numbers

One comma-separated coordinate or matrix row per line.
One comma-separated coordinate or matrix row per line.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Intersect two convex spherical polygons with minor great-circle edges. The result provides boundary directions and solid-angle area on the unit sphere,while distinguishing empty or lower-dimensional contacts.

THE FORMULAP∩Q is the intersection of inward great-circle hemispheres;area=Σoriented solid angles of triangles from an interior direction.

A worked example

Each default polygon is the positive-octant spherical triangle with coordinate-axis vertices. Its area isπ/2steradians. Intersecting it with itself preserves that area and gives a fraction1/8of the full sphere.

Good to know

Each polygon3–12 nonzero3Ddirections normalized explicitly;convex and contained in the open hemisphere of its normalized vertex sum. Consecutive minor great-circle edges. Antipodal,nonconvex or unresolved zero edges rejected. Unit-sphere area,not WGS84 geodesy;boundary contacts use numerical tolerances.

The boundary model uses great-circle arcs

A spherical polygon is not obtained by connecting3Dvertices with straight chords in space or by connecting latitude-longitude pairs with arbitrary map segments. This page uses the shorter great-circle arc between each consecutive pair of normalized directions.

The distinction affects both clipping and area. A planar polygon intersection followed by projection onto a sphere generally produces different boundary curves. The mathematical input is a region on the unit sphere rather than a flat map outline with unspecified edge behavior.

The octant example fixes the area scaleSame octant triangleIntersection areaπ/2Sphere fraction1/8
Scroll across to see the full diagram.
Each default polygon is the positive-octant spherical triangle with coordinate-axis vertices. Its area isπ/2steradians. Intersecting it with itself preserves that area and gives a fraction1/8of the full sphere.

Compare this with the Spherical polygon area calculator from latitude and longitude. Measuring one spherical polygon does not construct the intersection of two regions.

Convexity is checked in a supported hemisphere

Each input polygon must fit inside the open hemisphere centered on its normalized vertex sum. Consecutive edges define inward hemisphere constraints,and all other vertices must satisfy each constraint under the documented numerical tolerance.

The orientation is normalized when needed,but arbitrary vertex reordering is not repaired. Nonconvex,self-crossing or antipodal-edge data are rejected instead of interpreted through a different winding region. Nonzero vector lengths are normalized and do not serve as area weights.

Clipping follows spherical halfspace constraints

An inward great-circle normal defines which hemisphere lies inside a clip edge. Crossing a boundary can be found by interpolating the two spatial endpoint vectors to their zero signed projection and normalizing that intersection direction.

Because the accepted edges are minor arcs in a resolved hemisphere,this construction selects the appropriate crossing rather than its antipodal partner. The algorithm repeats that clipping for every edge of the second polygon,retaining the region satisfying both sets of hemisphere constraints.

The octant example fixes the area scale

The coordinate-axis triangle has three right spherical angles. Its excess is3π/2−π=π/2,so it covers one eighth of the unit sphere whose total area is4π. This gives an independent geometric check on the output.

Intersecting that triangle with itself should preserve its boundary and area up to numerical duplicate handling. A doubled closing vertex or a reversed input orientation should not silently double the area,change the region into its complement or switch the unit-sphere scale.

Compute area from an interior triangulation

For a positive-area clipped polygon,the implementation chooses an interior normalized direction and adds the signed solid angles of triangles from that direction to successive boundary vertices. The sum gives steradians directly on the unit sphere.

The reported sphere fraction divides by4π. For a physical sphere of radius R,area would multiply by R². No ellipsoidal Earth correction is present,and the result should not be labeled a WGS84 land area merely because geographic coordinates can be converted to directions.

Empty and boundary-only intersections need different labels

Two polygons can be disjoint,touch at a point or share a boundary arc without enclosing positive area. The returned kind distinguishes an empty result from retained lower-dimensional contact vertices rather than manufacturing a tiny filled region from roundoff.

Classification near coincidence still depends on numerical tolerances. This implementation does not provide exact predicates for every degenerate spherical arrangement. Inputs close to antipodal edges or unresolved zero-length segments should be simplified or analyzed with a more specialized geometry representation.

Keep the clipped vertices in their directional convention

Output vertices are normalized3Dvectors in boundary order. They can be converted to latitude and longitude for display,but any map drawing must preserve the chosen great-circle edge convention to represent the same spherical region.

The page constructs only the intersection of two supported convex regions. Polygon union,holes,large regions crossing the selected hemisphere and nonconvex spherical topology are different tasks. The finite vertex list should not be generalized into support for those cases without additional algorithms and checks.

A few questions, answered

Is area measured in square coordinate units?

It is unit-sphere area in steradians;physical sphere area multiplies by radius squared.

Are edges latitude-longitude straight lines?

No. They are the shorter great-circle arcs between directions.

Can it intersect nonconvex spherical regions?

No. Both inputs must satisfy the supported convex hemisphere conditions.

Why does the default area equalπ/2?

The positive-octant triangle covers one eighth of the sphere's4πsteradians.

Find your calculator

Start typing to explore the library.