Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How does one calculate the intersections between a "line" (a Great Circle) and a circle in spherical geometry?

i.e. given start point (as lat,lon), heading, circle centre (as lat, lon) and circle radius (as a % of the sphere's radius), there will be between zero and two* locations where they meet.

share|cite|improve this question

This is just a special case of circle-circle intersection, because a great circle is just a circle with radius $\frac{\pi R}{2}$. If you embed your sphere in Euclidean $\mathbb{R}^3$ then a circle on the sphere is the intersection of a plane with the sphere (where the plane passes through the sphere's centre iff it's a great circle).

The intersection of the two circles is therefore the intersection of both planes and the sphere. This can be calculated by finding the intersection of the planes, which is a line except in special cases, and then finding the intersection of that line with the sphere.

share|cite|improve this answer

OK my first attempt at this goes something like...

Diagram, steps, and screenshot of W.A. solving it

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.