Documente Academic
Documente Profesional
Documente Cultură
+ +
=
2
2 2 2 2
2 2
2
1
c
y b abyX X a
y X
2
2 2
1
=
c
by aX
y X
2 2
Z y X =
2
1
c
by aX
= Z
0 = + + cZ by aX
+
0 = z y x a
0 ) ( =
, , , , c b
x
OP OP OP
2 1
Page 11 of 37
Intersections of great circles on a sphere Dirk Bertels
Let
2 2
a c u + =
v
then (5) can be simplified to
with roots
This of course enables you to find z, using (1)
2 2
1 x y z =
u
uw v v
2
4
2
=
+ =
2 = aby
w
2 2 2 2 2
c y c y b
uX 0
2
= + + w vX
x
Page 12 of 37
Intersections of great circles on a sphere Dirk Bertels
Page 13 of 37
Intersection of great circles with the equator
(Special case for Y = 0)
Gives coordinates for Great Circle at the equator of the sphere
2 2
2
c a
c
X
=
2 2
2
2
c a
c
= X
( )
2 2 2 2
c c a =
2 2 2 2 2
c X c X =
X
a
2
2
2 2
1 X
c
X
+ =
a
=
2
2 2
2
1
c
X a
X
2
2
1
=
c
aX
2 2
1
X
Z X =
c
aX
= Z
First intersection at
c
c a
c
a
c a
c
2 2
2
2 2
2
, 0 ,
Intersections of great circles on a sphere Dirk Bertels
Second intersection at
c
c a
c
a
c a
c
2 2
2
2 2
2
, 0 ,
You will note that the great circles of the pentagon1 and pentagon2 cross each other at
this equator if both pentagons have the same longitudinal orientation.
Page 14 of 37
Intersections of great circles on a sphere Dirk Bertels
Equation of the intersection of 2 great circles
We use exactly the same procedure to define the second great circle, using the 2 vectors
and
(6)
It follows that if equations (1), (2), and (3) hold true, then the point P
x
is located on the
sphere and on both great circles, that is, we defined the necessary conditions for this point
to exist. We also know from the introduction that exactly 2 such points must exist for any 2
great circles.
Solving the equations
All that remains now is solving equations (1), (2), and (6) for x, y, and z
from (2)
(7)
Substitute (7) in (6)
( )
db ea
fa dc
z y
a
fa dc
z
a
db ea
f
a
dc
z
a
db
e
fz
a
dcz
a
dby
fz ey
a
dcz
a
dby
fz ey
a
cz by
fz ey
=
= + +
= + +
= + +
0
0
0
y
y
ey
d
dx
( )
a
cz by
4 3
x
OP OP OP
x =
0 ( = ) 0 , = z y x f d 0 , , , e = + + fz ey dx
3 3 3 3
, , z y x OP =
4 4 4 4
, , z y x OP =
Page 15 of 37
Intersections of great circles on a sphere Dirk Bertels
let
db ea
fa dc
h
= then hz y = (8)
Substitute (8) in (7) and isolate z
( )
a
c bh
z
a
cz bhz
=
=
x
let then (9)
a
c bh
g
=
gz x =
Substitute (9), (8), and (7) into (1)
let
The two great circles intersect at the points
9
:
)
9
As stated before, remember that 'r' which is a variable in 'k' is represented by '' in the supplement.
( ) ( k hk gk k hk gk , , , , ,
1
2 2
2
+ +
=
h g
r
k
( ) ( )
( )
1
1
2 2
2
2 2 2 2
2 2 2 2
2 2 2 2
+ +
=
= + +
= + +
= + +
h g
r
r h g
r z hz gz
r z y x
z
z
Page 16 of 37
Intersections of great circles on a sphere Dirk Bertels
Page 17 of 37
Conversion to spherical coordinates
If you're like me and hopelessly confused about geographical terminology, here's a
refresher:
Meridian
Great circle passing through both poles.
Latitude
The latitude of a point on earth is its angular distance from the equator measured upon the
curved surface of the earth.
Referred to as '' in the "Spherical Coordinates" appendix. It is the angle formed between
the point and the Y-axis.
Longitude
The longitude of a point on earth is the angular distance from a standard meridian (usually
through Greenwich) to the meridian running through this point.
Referred to as '' in the "Spherical Coordinates" appendix. It is the angle formed between
the point and the YZ-plane.
P
1
=(lat
1
, lon
1
)
P
2
=(lat
2
, lon
2
)
In the "Y Points up, X points right, Z points forward" coordinate system (as used in the
supplement):
=
k
gk
1
2
tan lon
=
r
hk
t
1
2
cos la
=
k
gk
n
1
1
tan lo
=
r
hk
t
1
1
cos la
Intersections of great circles on a sphere Dirk Bertels
Page 18 of 37
=
2 1 2 1
z x x z =
2 1 2 1
x y y x =
4 3 4 3
y z z y d
In the "Z points up, Y points right, X points forward" coordinate system
10
:
2 1 2 1
y z z y a
b
c
=
4 3 4 3
z x x z e =
4 3 4 3
x y y x f =
a
c bh
g
=
db ea
fa dc
h
=
4 4 4 4
, , z y x OP =
3 3 3 3
, , z y x P = O
2 2 2 2
, , z y x P = O
1 1 1 1
, , z y x P = O
gk
hk
lon
=
1
2
tan
=
r
k
lat
1
2
cos
gk
hk
lon
1
1
tan
=
r
k
1
1
cos
lat
Recapitulation
1
2 2
2
+ +
=
h g
r
k
The two great circles intersect at the points:
( )
) ( k hk gk k hk gk , , , , ,
10
Used in standard mathematical text books, here from J ames Stewart's "Calculus" ISBN 0-534-35949-3
Intersections of great circles on a sphere Dirk Bertels
Page 19 of 37
= + = =
10 4 6
2 1 2 1
= + = = z x x z
5 9 4
2 1 2 1
= = = x y y x
Example
Assume the circle has its center at (0, 0, 0)
To ensure we are working with the same circle, all we need to do is to make sure that the
value for 'r' remains the same.
For example take the arbitrary coordinate values -2, 3, and 2.
Switching the values and polarity of the coordinates ensures that 'r' remains the same. For
the coordinates given above,
( ) ( ) 17 2 2 3 2 3 2
2 2 2 2 2 2 2 2 2 2
= + + = + + = + + = z y x
r
10 4 6
2 1 2 1
y z z y a
b
c
2 , 2 , 3 , ,
2 2 2 2
= = z y x OP
2 , 3 , 2 , ,
1 1 1 1
= = z y x P
= + z y x
O
r 17 =
First great circle
Using the values given above,
Determine the cross-product (orthogonal vector)
5 , 10 , 10 , ,
2 1
= = c b a OP
OP
Equation of the plane containing the first great circle
ax 0 = + + cz by
10 0 5 10
Intersections of great circles on a sphere Dirk Bertels
Page 20 of 37
Second great circle
To facilitate testing the equations, we use one point of the first great circle plus a new one
that also adheres to the same radius. In other words, OP
1
=OP
3
which should be showing
up as one of the intersection points.
( )
2
1 1
2
3
17
1
2
2 2 2
2
=
+ +
=
+ +
=
h g
r
k
1
10
5 15
=
+
=
=
a
c bh
g
2
3
50 20
20 25
=
=
db ea
fa dc
= + + z y x
0 = + + fz ey x
h
0 2 2 5
d
2 , 2 , 5 , ,
4 3
= = f e d OP P
2 6 4
4 3 4 3
O
= + = = x y y x
2 6 4
4 3 4 3
= + = = z x x z
5 4 9
4 3 4 3
= = = y z z y
f
e
d
3 , 2 , 2 , ,
4 4 4 4
= = z y x P O
2 , 3 , 2 , ,
3 3 3 3
= = z y x P O
Point of intersections
Intersections of great circles on a sphere Dirk Bertels
Page 21 of 37
Therefore the points of intersection between the 2 great circles are
3 7559 . 0 cos 17 cos = = = y
2 7853 . 0 sin 7559 . 0 sin 17 sin sin = = = x
2 7853 . 0 cos 7559 . 0 sin 17 cos sin = = = z
7853 . 0
2
2
tan tan
1 1
=
= =
k
gk
lon
7559 . 0
17
3
cos cos
1 1
=
= =
hk
t la
17 = = r
( ) ( ) ( ) ( 2 , 3 , 2 , 2 , 3 , 2 , , , , , ) = k hk gk k hk gk
Note the first of these are the same coordinates as those for OP
1
and OP
3
as was
predicted.
Testing the Spherical Coordinate Equations
Refer to the supplement Spherical Coordinates also
Say for 2 , 3 , 2 , ,
1 1 1 1
= = z y x OP
Therefore the spherical coordinates are
( ) ( ) 7559 . 0 , 7853 . 0 , 17 , , =
Reconverting to spherical coordinates using the equations given in the supplement:
The spherical (3D polar) representation is especially useful in problems where there is
symmetry about a point, and the origin is placed at this point.
Intersections of great circles on a sphere Dirk Bertels
Interesting points regarding distance on a sphere
Nautical mile
On a great circle, 1 minute of arc is one nautical mile.
The circumference of the earth is 360 * 60 =21,600 nautical miles.
In meters, knowing that the mean radius of the earth is 6,370,000 meters, then one
nautical mile is
This is just a little larger than the ordinary mile, which is
Spherical Equation for a Great Circle
11
The following is for the ZYX axes.
Given two points (lat
1
, lon
1
), (lat
2
, lon
2
), the great circle that contains these two points is
defined by points (lat
c
, lon
c
) that satisfy:
The lateral angle extends over a range of 1 PI, while the longitudinal angle extends over 2
PI.
Let theta (lon
c
) vary from 0 to 2
I tried these spherical equations with negative results (though some wonderful swirls were
produced).
View the document "Kaplan-Hart_Bridges_2001.pdf" (in dome physics directory). On page
7, fig 9, the middle 'near miss' represents our geohut. Note the comment that it had been
found in documents from Daniele Barbaro. La Pratica Della Perspettiva. 1569.
11
copied from http://nsidc.org/data/tools/spheres/GCIntersect.html
( ) ( ) ( ) ( ) ( ) ( )
( ) ( ) ( )
=
2 1 2 1
1 1 2 2 2 1 1
sin * cos * cos
sin * cos * sin sin * cos * sin
tan
lon lon lat lat
lon lon lat lat lon lon lat lat
lat
c c
c
meters mile 957889 . 852 , 1
600 , 21
000 , 370 , 6 * 2
_ = =
nautical
mile meters 3 . 609 , 1 =
Page 22 of 37
Intersections of great circles on a sphere Dirk Bertels
Page 23 of 37
Knowing arc length of the pentagon and
circumference of the sphere, find the (vertical)
proportion of the pentagon's location to its radius.
Given
Circumference: 10.250
Top Pentagon arc length: 0.42 // Buckminster: 0.424647373
Bottom pentagon arc length: (2*160) +(610 * 2) =1.54
Calculations
radius
r =C / 2PI =1.631338
Pentagon 1
48345114 . 1 2 _ = chord length
( ) ( ) 944 . 0 cos 1 *
2
25 . 10
2 2 _
2
chord length
94401028
6313 . 1
. 0
54 . 1
= =
418840985 . 0 1 _ = chord length
( ) ( ) 257 . 0 cos 1 *
2
25 . 10
2 1
2
( )
_ chord length
( )
cos 1 *
2
2 cos 1 2 1 _
2
2
= =
C
r chord ngth le
257457 . 0
630338 . 1
42 . 0
= =
radius
length arc _
=
Pentagon 2
Intersections of great circles on a sphere Dirk Bertels
Page 24 of 37
Radius of the circle circumscribing the pentagon
phi =1.618034
x
y
773536068 . 0
631338 . 1
261886 . 1
2 _ = = pent ratio
218401941 . 0
631338 . 1
356287423 . 0
1 _ = = pent ratio
radius sphere
radius pentagon
atio
_
_
= r
261898911 . 1
3
48345114 . 1
2 _ =
=
phi
pent radius
356287423 . 0
3
418840985 . 0
1 _ =
=
phi
pent radius
phi
side
pent
=
3
_ radius
phi pent radius ide = 3 _ s
Ratio between the sphere's and pentagon's radii
Adjust to the parameters needed to instantiate the object
If for a sphere radius r, the pentagon radius is x, then this means that the cos of the angle
in the figure is x. Therefore,
x
1
cos
=
From which we can calculate y,
y sin =
Intersections of great circles on a sphere Dirk Bertels
975858899 . 0 sin
35061975 . 1 1 _ cos
1
= =
= =
y
pent ratio
For Pentagon 1:
For pentagon 2:
633752279 . 0 sin
686394442 . 0 2 _ cos
1
= =
= =
y
pent ratio
Calculations for Buckminster version
12
For radius =1:
PENTAGON 1
Arc of top pentagon = 26030616 . 0 =
(X)
( ) 259571858 . 0 cos 1
2 _
2
= chord length 1 = r
(Y)
220805011 . 0 _ = =
chord length
pent radius
3
1 _
1
phi
PENTAGON 2
Arc of lower pentagon =
12
See Bamboo Dome illustration at back of this document
630990991 . 0 sin
682829945 . 0 2 _ cos
1
= =
= =
y
pent ratio
775790157 . 0
3
2 _
2 _ =
=
phi
chord length
pent radius
( ) 911996026 . 0 cos 1 2 2 _
2
= = r chord length
94698656 . 0 =
975317972 . 0 sin
34815655 . 1 1 _ cos
1
= =
= =
pent ratio
y
Page 25 of 37
Intersections of great circles on a sphere Dirk Bertels
Page 26 of 37
Graphically producing the great circles.
Refer to geohut.c in the geoHut project
13
.
Assume the sphere's radius 1.
Earlier on we calculated the coordinates of the 2 pentagons positioned horizontally on the
surface of a sphere. Every one of these points (with coordinates x, y, and z) can be
represented as a vector with radius r pointing from the center of the sphere towards that
point.
We then took 2 consecutive vectors (points) of one pentagon and found their common
perpendicular vector by applying the cross product operation to them.
This perpendicular vector, let's call it P1, has its origin in the center of the sphere and has
a length dependent on the angle between the 2 pentagon vectors.
P1 is the rotation axis around which we will rotate to produce a great circle.
(program: P1 =<xa, ya, za>)
We normalise the length of P1, effectively making its length 1.
Take one of the pentagon vectors, call it V1, and cross product it with P1. Normalise this
third vector and call it P2.
Now we effectively created a right-handed 3D axis system.
(program: V1 =<xn, yn, zn>)
(program: P2 =<xn2, yn2, zn2>)
Let for i = x, y, z in turn
V
[i]
be the Pentagon's vector
P1
[i]
be the vector perpendicular to the 2 consecutive Pentagon vectors
P2
[i]
be the vector perpendicular to V
[i]
and P1
[i]
Then
For 0 < <2
P1
V1
P2 V
[i]
Plot the Great Circle with
[ ] [ ]
[ ]
sin 2 cos
i
P V
GC
i i
+ =
13
Not publicly available as yet
Intersections of great circles on a sphere Dirk Bertels
Page 27 of 37
Note that this equation is based on the equation for the circle
xcos+ysin =r
Intersection of the great circle with the equator of the sphere
Building on this knowledge, we can derive the rotation angle for when the great circle cuts
the Y axis. For then
[ ]
[ ]
=
y
y
P
V
2
tan
1
[ ] [ ]
sin 2 cos
y y
P =
[ ] [ ]
[ ]
0 sin 2 cos = + =
V
y
P V C
y y
G
Feed this angle back into the initial formula
[ ] [ ]
[ ]
sin 2 cos
i
P V
GC
i i
+ =
Intersection of plane with the cylinder
The cylinder is a less complex object than the sphere, and this is reflected in the
mathematics A simple combination of Cartesian with Parametric equations is all that's
needed.
For the plane
(1) 0 = + + cZ bY aX
Intersections of great circles on a sphere Dirk Bertels
Page 28 of 37
cos = =
t xmid sin = =
And the cylinder of radius 1,
t zmid Z
X
b
xmid a zmid c * *
=
Y
Z 1
2 2
= + X
The projection of the great circle on the ZX (horizontal) plane is represented by
14
(2)
Derive Y from (1),
Combining (1) with (2),
Interesting observation
It doesn't matter whether the cross product vector <aX, bY, cZ>was normalised or not.
The results are the same.
For Y =0, we already know the values of X and Z know from the great circle / equator
intersection. In the program, the results are stored in xmid and ymid
So
Therefore
sin cos = =
t cos = t =
14
See "Calculus" 4
th
edition by J ames Stewart - ISBN: 0-534-35949-3 pp 873
xmid a zmid a t
Z X sin
b
t
Y
cos a t c sin
=
2 0 t
b
aX cZ
Y
=
cos = sin t Z X = 2 0 t t
Intersections of great circles on a sphere Dirk Bertels
Page 29 of 37
Intersection of 2 curves on the cylinder
=
bd ea
ec bf
t
1
tan
bd ea
ec bf
t
t
t
= =
cos
sin
an t
e
t d t f
b
t a t c sin cos sin cos
=
) ( ) t bd ea t ec sin cos =
t bd t bf t ea t ec sin cos sin cos =
(bf
e
t d t f
Y
sin cos
2
=
sin =
cos =
t X
t Z
b
t a t c
Y
sin cos
1
=
t sin = X
t Z cos =
Equation for curve 1, for
Equation for curve 2, for
At point of intersection, Y1 =Y2
Feeding this value of t in any of the 2 equations will produce the coordinates of
intersection.
2 t 0
2 t 0
Intersections of great circles on a sphere Dirk Bertels
Calculations needed to construct the dome
The remaining challenge is to give (Y) boundaries to both the spherical and cylindrical
great circles and to divide each great circle section into equal parts so that the dome can
be constructed from objects of equal size.
Also, we need to know the distances between points of intersection.
Calculate intersections to locate the lower rings.
The location of the upper and lower pentagons is optimised so that the whole of the dome
can be constructed using 3 different lengths.
The sphere's great circles
We already determined where the great circles cut the equator.
Also, the great circle sections are subdivided equally in radians.
The cylinder's great ellipses
Subdivisions of the great ellipse sections are not equal.
Need to determine the intersections to find a suitable lower (Y) boundary for the base of
the dome.
Page 30 of 37
Intersections of great circles on a sphere Dirk Bertels
Defining a 3D curve in Polar coordinates
This section is not complete yet, though all the major equations are formalised.
Generally, for
a
And vector equation
Or, equivalently, the parametric equation
The arc length of the curve is
For the parametric equation
Using the product rule,
( ) k j i r ) sin (
cos sin
cos ' t
b
t a t c
t t +
+ =
( )
( ) ( ) ( )
k j i r ) sin (
* sin cos * sin cos
cos '
2
t
b
b
dt
dy
t a t b t a t
dt
dy
t t +
+ =
( ) k j i r t
b
t a t c
t t cos
sin cos
sin +
+ =
=
a
b
dt
dt
dz
dt
dy
dt
dx
L
2 2 2
( ) [ ] ( ) [ ] ( ) [ ]
+ + =
a
b
dt t h t g t f L
2 2 2
' ' '
= = = , , ( ) ( ) ( ) t h z t g y t f x
( ) ( ) ( ) ( ) t h t g t f t , , =
b t
r
Page 31 of 37
Intersections of great circles on a sphere Dirk Bertels
( ) ( ) ( )
2
2
2
sin
cos sin
cos ' t
b
t a t c
t t +
+ = r
( ) ( )
( ) ( )
( )
2
2
2 2
2
sin
cos ) sin * cos ( 2 sin
cos ' t
b
t a t c t a t c
t t +
+ +
+ = r
Since
( ) ( ) 1 cos sin
2 2
= + t t
( )
( ) ( )
+
+ =
2
2 2 2 2
cos sin * cos 2 sin
1 '
b
t a t t ac t c
t r
( ) ( ) ( )
2
2
2
2
2
2
2
cos sin cos
2
sin 1 ' t
b
a
t t
b
ac
t
b
c
t + + = r
Convert to a polynomial form
let
2
2
2
2
2
1
1
b
ac
b
c
b
a
=
+ =
+ = u
v
w
then
( ) ( ) ( )
2 2
sin sin cos 2 cos ' t v t t w t u t + + = r
Page 32 of 37
Intersections of great circles on a sphere Dirk Bertels
Supplement - Spherical Coordinates
Standard representation of a point using spherical coordinates
Following diagram illustrates that a point in 3D space can be described by 2 angles. Note
that some textbooks may interchange X, Y, and Z, but this does not alter the logic. The X,
Y, Z configuration used here is the standard used in the OpenGL Graphics library and
therefore relates to our discussion
15
.
Y
P(,,)
latitude
r
longitude X
Z
In the Y-r plane In the Z-X plane
y = cos (1) z =r cos (3)
r = sin (2) x =r sin (4)
Spherical to rectangular Rectangular to Spherical
z = sin cos (2, 3) =cos
-1
(y/)
x = sin sin (2, 4) =tan
-1
(x/z)
y = cos (1)
15
All equations have been checked and confirmed
Page 33 of 37
Intersections of great circles on a sphere Dirk Bertels
Illustrations
Following images are some still images taken from my C++animation demonstrating the
great circles on cylinders and domes.
Page 34 of 37
Intersections of great circles on a sphere Dirk Bertels
Page 35 of 37
Intersections of great circles on a sphere Dirk Bertels
Page 36 of 37
Intersections of great circles on a sphere Dirk Bertels
Following figure was taken from http://www.boeing-727.com/Data/fly%20odds/distance.html . This is a good
web site to explore because of its practical nature.
Page 37 of 37