Hostname: page-component-745bb68f8f-mzp66 Total loading time: 0 Render date: 2025-02-06T12:06:42.015Z Has data issue: false hasContentIssue false

Vector Solutions for Azimuth

Published online by Cambridge University Press:  26 June 2008

Rights & Permissions [Opens in a new window]

Abstract

Vector based methods applied to navigational problems offer some advantages in the calculation of distance and azimuth. In this paper, the methods of vector analysis are used to develop a variety of expressions for azimuth that are suited to both the syntax of computer algorithms and commercial mathematical software. The solutions presented here do not require recourse to the rules of spherical trigonometry - a distinct advantage when dealing with the spheroid. In the process of preparing this paper, an error of principle that occurred in a previous work was revealed and is repaired here.

Type
Research Article
Copyright
Copyright © The Royal Institute of Navigation 2008

1. GENERAL

On the spheroidal earth generated by a reference ellipse rotated about its minor axis, two known positions lying on the great ellipse (GE) at positions P1 and P2 define two vectors of position X1 and X2 that are in turn specified by their geocentric latitude and longitude co-ordinates φ1, θ1 and φ2, θ2 respectively. The general vector of position is given as:

(1)
{\bf X} \equals r\lsqb {{\bf \hat{i}} \cos  \phi  \cos \theta \plus {\bf \hat{j}} \cos \phi  \sin  \theta \plus {\bf \hat{k}} \sin \phi } \rsqb
(2)
{\rm where}\quad \quad r \equals a\sqrt {{{1 \minus \varepsilon ^{\setnum{2}} } \over {1 \minus \varepsilon ^{\setnum{2}} \cos ^{\setnum{2}} \phi}}}

Here, a is the equatorial radius, ε is the ellipticity of the generating ellipse and {\bf \hat{i}\comma \hat{j}\comma \hat{k}} are unit vectors. The geodetic latitude ψ and the geocentric latitude are related by tanφ=(1−ε2)tanψ; the longitude is θ and all are in radians. Three unit vectors associated with the position vector are the meridian tangent vector {\bf \hat{u}}_{\phi}, the parallel tangent vector {\bf \hat{u}}_{\theta} and the unit normal {\bf \hat{n}}. These are defined as:

{\bf \hat{u}}_{\phi } \equals \minus {\bf \hat{i}}\sin \psi \cos \theta \minus {\bf \hat{j}}\sin \psi \sin \theta \plus {\bf \hat{k}}\cos \psi
{\bf \hat{u}}_{\theta } \equals \minus {\bf \hat{i}}\sin \theta \plus {\bf \hat{j}}\cos \theta
{\bf \hat{n}} \equals {\bf \hat{i}}\cos \psi \cos \theta \plus {\bf \hat{j}}\cos \psi \sin \theta \plus {\bf \hat{k}}\sin \psi

In other expressions to follow, there is a unit polar vector {\bf X}_{p} \equals {\bf \hat{k}}. Also, latitude and longitude co-ordinates are designated as N, S, E or W and are assigned algebraic significance with N=E=1 and S=W=−1.

2. EQUATION OF THE GREAT CIRCLE OR GREAT ELLIPSE

From two surface positions it is a simple matter to determine the equation of the GE upon which they lie. The GE is a solution2 to {\bf X} \cdot \left( {{\bf X}_{\setnum{1}} \times {\bf X}_{\setnum{2}} } \right) \equals 0 and has the following form in geocentric co-ordinates:

(3)
\tan \phi \equals \minus \lpar {\lambda \cos \theta \plus \mu \sin \theta } \rpar

and in geodetic co-ordinates on the spheroid

(4)
\tan \psi \equals \minus {{\lpar {\lambda \cos \theta \plus \mu \sin \theta } \rpar} \over {1 \minus \varepsilon ^{\setnum{2}}}}

Equation 3 also describes the great circle (GC) on the sphere.

The coefficients λ and μ are: λ=m/p and μ=n/p, where the latter terms arise from the vector {\bf \hat{i}}m \plus {\bf \hat{j}}n \plus {\bf \hat{k}}p \equals {\bf X}_{\setnum{1}} \times {\bf X}_{\setnum{2}}, which is perpendicular to the plane of the GE and has a unit vector is given by:

(5)
{\bf \hat{X}}_{\setnum{12}} \equals {{{\bf X}_{\setnum{1}} \times {\bf X}_{\setnum{2}} } \over {\left\vert {{\bf X}_{\setnum{1}} \times {\bf X}_{\setnum{2}} } \right\vert}} \equals {{{\bf \hat{i}}\lambda \plus {\bf \hat{j}}\mu \plus {\bf \hat{k}}} \over {\sqrt {\lambda ^{\setnum{2}} \plus \mu ^{\setnum{2}} \plus 1}}}

The highest latitude N or S reached by the GC or GE is at a turning point or vertex φv, which occurs when {{{d}\phi } \over {{d}\theta }} \equals 0 i.e. when

(6)
{{\lambda \sin \theta \minus \mu \cos \theta } \over {\sec ^{\setnum{2}} \phi }} \equals 0

whose solution is the vertex longitude \theta _{v} \equals \arctan \left( {{\mu \over \lambda }} \right). Consequently,

(7)
\mu \equals \lambda \tan \theta _{v} \ \colon \ \lambda \equals \mu \cot\! {\rm an}\theta _{v}

Substitution of these two terms back into Equation 3 leads to alternatives for Equations 3 and 4 so then the geocentric latitude on the GC or GE becomes:

(8)
\tan \phi \equals \sqrt {\lambda ^{\setnum{2}} \plus \mu ^{\setnum{2}} } \cos \lpar {\theta _{v} \minus \theta } \rpar

and when θ=θv

(9)
\tan \phi _{v} \equals \sqrt {\lambda ^{\setnum{2}} \plus \mu ^{\setnum{2}}}

thus for the GC or GE in geocentric co-ordinates

(10)
\tan \phi \equals \tan \phi _{v} \cos \lpar {\theta _{v} \minus \theta } \rpar

and for the GE in geodetic co-ordinates

(11)
\tan \psi \equals {{\tan \phi _{v} \cos \left( {\theta _{v} \minus \theta } \right)} \over {1 \minus \varepsilon ^{\setnum{2}}}}

3. AZIMUTH SOLUTION FOR THE GREAT CIRCLE

For any track including a GE or a GC, the azimuth angle γ as defined here, is the angle measured from north to π or 180° in either direction towards the track where it crosses a meridian going towards P2. In the case of the GC, it is also the angle between the unit vector normal to the meridian plane and the unit vector normal to the plane of the GC. Azimuth on the GC at a departure point P1 can therefore be conveniently expressed an terms of position vectors as:

(12)
\gamma _{\rm \setnum{1}} \equals arcos\left( {{{\lpar {{\bf X}_{\setnum{1}} \times {\bf X}_{{\rm p }} } \rpar} \over {\left\vert {{\bf X}_{\setnum{1}} \times {\bf X}_{\rm p} } \right\vert}} \cdot {{\lpar {{\bf X}_{\setnum{1}} \times {\bf X}_{{\rm \setnum{2}\ }} } \rpar} \over {\left\vert {{\bf X}_{\setnum{1}} \times {\bf X}_{\rm \setnum{2}} } \right\vert}}} \right)

In a more general case, using the normal to the meridian of any point other than P1, then azimuth can be established by changing Equation 12 as follows:

(13)
\gamma \equals arcos\left( {{{\lpar {{\bf X}_{} \times {\bf X}_{{\rm p\ }} } \rpar} \over {\left\vert {{\bf X}_{} \times {\bf X}_{\rm p} } \right\vert}} \cdot {{\lpar {{\bf X}_{\setnum{1}} \times {\bf X}_{{\rm \setnum{2}\ }} } \rpar} \over {\left\vert {{\bf X}_{\setnum{1}} \times {\bf X}_{\rm \setnum{2}} } \right\vert}}} \right)

This equation avoids a discontinuity that can occur as X meets X2 and is therefore more versatile. It is easily shown that when expanded, this equation reduces to the conventional expression for azimuth1.

4. AZIMUTH SOLUTIONS FOR THE GREAT ELLIPSE

Equation 12 or 13 will give a good approximate solution for azimuth along the GE on the spheroid but they are not however a correct formulation of the geometry of the problem as it applies to the spheroid. The minute numerical error that would result exists because, unlike on the sphere, where the vectors normal to the meridian and the GC both lie in the tangent plane, only the unit vector perpendicular to the meridian lies in the tangent plane, while the unit vector normal to the GE, though very close, does not. This error of principle occurred in the Author's earlier paper published in the Journal 2 and opportunity is taken here to repair that error.

Figure 1 shows the tangent plane at the point of tangency Px located at the end of vector X. The tangent plane is a small rectilinear area at the surface perpendicular to the unit normal {\bf \hat{n}}. Also shown are position vectors X1 and X2 that define the unit vector {\bf \hat{X}}_{\setnum{12}} that lies perpendicular to the plane of the GE but not perpendicular to the unit normal vector {\bf \hat{n}} and which is also elevated by a small angle δ above the tangent plane. Also,{\bf \hat{X}}_{\setnum{12}} lies in the same vertical plane containing {\bf \hat{X}}_{\bf u} and the unit normal {\bf \hat{n}}. The proper definition for azimuth in this case is:

(14)
\gamma \equals \arccos \left[ {{{{\bf X} \times {\bf X}_{p} } \over {\left\vert {{\bf X} \times {\bf X}_{p} } \right\vert}} \cdot {\bf \hat{X}}_{\bf u} } \right]

Here, the unit vector {\bf \hat{X}}_{\bf u} is the image of {\bf \hat{X}}_{\setnum{12}} in the tangent plane and Xp is the previously defined polar vector.

Figure 1.

In order to determine the vector {\bf \hat{X}}_{\bf u}, we note first that the vector {\bf \hat{X}}_{\setnum{12}} can be considered as a linear combination of {\bf \hat{X}}_{\bf u}, which is to be determined, and {\bf \hat{n}} i.e.:

{\bf \hat{X}}_{\setnum{12}} \equals \cos \delta \ {\bf \hat{X}}_{u} \plus \sin \delta \ {\bf \hat{n}}

Then, on re-arranging

(15)
{\bf \hat{X}}_{u} \equals {\bf \hat{X}}_{{\bf \setnum{12}}} \sec \delta \minus {\bf \hat{n}}\tan \delta

Substituting Equation 15 into Equation 14, the expression for azimuth becomes:

(16)
\gamma \equals \arccos \left[ {{{{\bf X} \times {\bf X}_{p} } \over {\left\vert {{\bf X} \times {\bf X}_{p} } \right\vert}} \cdot \lpar {{\bf \hat{X}}_{{\bf \setnum{12}}} \sec \delta \minus {\bf \hat{n}}\tan \delta } \rpar} \right]

But since {{{\bf X} \times {\bf X}_{p} } \over {\left\vert {{\bf X} \times {\bf X}_{p} } \right\vert}} and {\bf \hat{n}} are orthogonal, their scalar product vanishes leaving:

(17)
\gamma \equals \arccos \left[ {{{{\bf X} \times {\bf X}_{p} } \over {\left\vert {{\bf X} \times {\bf X}_{p} } \right\vert}} \cdot {\bf \hat{X}}_{\setnum{12}} \sec \delta } \right]
(18)
i.e.\quad \quad \gamma \equals arcos\left( {{{\lpar {{\bf X}_{} \times {\bf X}_{{\rm p\ }} } \rpar} \over {\left\vert {{\bf X}_{} \times {\bf X}_{\rm p} } \right\vert}} \cdot {{\lpar {{\bf X}_{\setnum{1}} \times {\bf X}_{{\rm \setnum{2}\ }} } \rpar} \over {\left\vert {{\bf X}_{\setnum{1}} \times {\bf X}_{\rm \setnum{2}} } \right\vert}}\sec \delta } \right)

To repair the error [2, Equation 29] where the nomenclature there employed V as the symbol for vector quantity, it is only necessary to include the term secδ or to restructure the equation to the form of Equation 18 above.

Expanding {{{\bf X} \times {\bf X}_{p} } \over {\left\vert {{\bf X} \times {\bf X}_{p} } \right\vert}} gives {\bf \hat{i}}\sin \theta \minus {\bf \hat{j}}\cos \theta, which is recognized as \minus {\bf \hat{u}}_{\theta}. Then Equation 17 becomes:

(19)
\gamma \equals \arccos \lpar { \minus {\bf \hat{u}}_{\theta } \cdot {\bf \hat{X}}_{\setnum{12}} \sec \delta } \right)

Also, when Equation 5 is substituted into Equation 17 together with the expansion for \minus {\bf \hat{u}}_{\theta} above, a scalar equation for azimuth is obtained. e.g.:

(20)
\gamma \equals \arccos \left( {{{\lpar {\lambda \sin \theta \minus \mu \cos \theta } \rpar\sec \delta } \over {\sqrt {\lambda ^{\setnum{2}} \plus \mu ^{\setnum{2}} \plus 1} }}} \right)

From Figure 1, the angle \delta \prime \equals \arccos \left( {{\bf \hat{X}}_{\setnum{12}} \cdot {\bf \hat{n}}} \right) and the small angle δ is its complement so

(21)
\rmdelta \equals \arcsin \lpar {{\bf \hat{X}}_{\setnum{12}} \cdot {\bf \hat{n}}} \rpar

which, on substituting Equation 5, produces an expression for δ namely:

(22)
\delta \equals \arcsin \left( {{{\varepsilon ^{\setnum{2}} \sin \left\vert \psi \right\vert} \over {\sqrt {\lambda ^{\setnum{2}} \plus \mu ^{\setnum{2}} \plus 1} }}} \right)

Figure 2 is similar to Figure 1 but with the addition of unit vectors tangent to the meridian, the parallel and the GE. Unit vector {\bf \hat{t}} tangent to the GE at the point of tangency is the product:

(23)
{\bf \hat{t}} \equals {{{\bf \hat{X}}_{{\bf \setnum{12}}} \times {\bf \hat{n}}} \over {\left\vert {{\bf \hat{X}}_{{\bf \setnum{12}}} \times {\bf \hat{n}}} \right\vert}}

As Figure 2 shows, the azimuth angle γ is between {\bf \hat{u}}_{\phi} and {\bf \hat{t}} therefore

(24)
\gamma \equals \arccos \lpar {{\bf \hat{u}}_{\phi } \cdot {\bf \hat{t}}} \rpar

or

(25)
\gamma \equals \arccos \left( {{\bf \hat{u}}_{\phi } \cdot \left( {{{{\bf \hat{X}}_{{\bf \setnum{12}}} \times {\bf \hat{n}}} \over {\left\vert {{\bf \hat{X}}_{{\bf \setnum{12}}} \times {\bf \hat{n}}} \right\vert}}} \right)} \right)

Figure 2.

Since {\bf \hat{X}}_{\setnum{12}} and {\bf \hat{u}}_{\phi} are each unit vectors it might be tempting to put {\bf \hat{t}} \equals {\bf \hat{X}}_{{\bf \setnum{12}}} \times {\bf \hat{n}}. This would be incorrect because the two unit vectors are not orthogonal. We note however, that in the denominator, \left\vert {{\bf \hat{X}}_{{\bf \setnum{12}}} \times {\bf \hat{n}}} \right\vert \equals \left\vert {{\bf \hat{X}}_{\setnum{12}} } \right\vert\left\vert {{\bf \hat{n}}} \right\vert\sin \delta \prime \equals \sin \delta \prime \equals \cos \delta since \left\vert {{\bf \hat{X}}_{\setnum{12}} } \right\vert and \left\vert {{\bf \hat{n}}} \right\vert are each unity, thus if one wished, Equation 24 could be written as:

(26)
\gamma \equals \arccos \lpar {{\bf \hat{u}}_{\bf \phi } \cdot \lpar {{\bf \hat{X}}_{{\bf \setnum{12}}} \times {\bf \hat{n}}} \rpar\sec \delta } \rpar

though Equation 24 might be preferred for its compactness.

Another vector statement for azimuth emerges upon re-visiting Equation 14 and considering Figure 2 again. From the figure it is clear that:

(27)
{\bf \hat{X}}_{u} \equals {\bf \hat{n}} \times {\bf \hat{t}}

Then, with \minus {\bf \hat{u}}_{\theta} substituted for{{{\bf X} \times {\bf X}_{p} } \over {\left\vert {{\bf X} \times {\bf X}_{p} } \right\vert}}, Equation 14 can be written compactly as:

(28)
\gamma \equals \arccos \lsqb { \minus {\bf \hat{u}}_{\theta } \cdot \lpar {{\bf \hat{n}} \times {\bf \hat{t}}} \rpar} \rsqb

Vector equations 19, 24 and 28 are compact expressions that do not require special rules for their evaluation.

Another approach is one that makes use of the magnitudes of the orthogonal components of a differential arc on the GE. Figure 3 illustrates the GE curve s and the components of a differential arc on s at P, the terminus of the vector X whose geocentric co-ordinates are φ and θ.

Figure 3.

With {\bf X}_{\phi } \equals {{\partial {\bf X}} \over {\partial \phi }} and {\bf X}_{\theta } \equals {{\partial {\bf X}} \over {\partial \theta }}, the following equations provide the needed components for azimuth. The projection of a differential element of arc ds on the meridian is:

(29)
{\rm d}\ s \ \cos \gamma \equals \left\vert {{\bf X}_{\varphi } } \right\vert{\rm d}\phi

and its projection on the parallel is

(30)
{\rm d}\ s \ \sin\gamma \equals \left\vert {{\bf X}_{\theta } } \right\vert{\rm d}\theta

and so

(31)
\tan \gamma \equals {{\left\vert {{\bf X}_{\theta } } \right\vert} \over {\left\vert {{\bf X}_{\phi } } \right\vert}}{{{\rm d}\theta } \over {{\rm d}\phi }}

Applying these operations to the vector defined in Equation 1, then after some manipulation and simplification, we arrive at:

\left\vert {{\bf X}_{\phi } } \right\vert \equals {\rm r}\left( {{\rm 1} \plus \left( {{{\dot{\rm r}}} \over {\rm r}} \right)^{\rm \setnum{2}} } \right)^{{\setnum{1} \over \setnum{2}}}
{\rm and}\quad \quad \left\vert {{\bf X}_{\theta } } \right\vert \equals {\rm r}\cos \theta

Therefore

(32)
\gamma \equals \arctan \left[ {{{\cos \phi } \over {\sqrt {\left( {1 \plus \left( {{{\dot{\rm r}}} \over {\rm r}} \right)^{\setnum{2}} } \right)} }}{{{\rm d}\theta } \over {{\rm d}\phi }}} \right]

Using Equation 2, {{{\dot{\rm r}}} \over {\rm r}} \equals {1 \over {\rm r}}{{{\rm dr}} \over {{\rm d\varphi }}} \equals {{ \minus \varepsilon ^{\setnum{2}} \tan \phi } \over {\lpar {1 \minus \varepsilon ^{\setnum{2}} } \rpar \plus \tan ^{\setnum{2}} \phi }} which, when substituted into the denominator of Equation 32, provides a scalar expression for azimuth:

(33)
\gamma \equals \arctan \left( {{{\cos \phi \lpar {\alpha \plus \tan ^{\setnum{2}} \phi } \rpar} \over {\sqrt {\lpar {1 \plus \tan ^{\setnum{2}} \phi } \rpar\lpar {\alpha ^{\setnum{2}} \plus \tan ^{\setnum{2}} \phi } \rpar} }}{{{\rm d}\theta } \over {{\rm d}\phi }}} \right)

Inserting Equation 6 into Equation 33 then

(34)
\gamma \equals \arctan \left( {{{\lpar {\alpha \plus \tan ^{\setnum{2}} \phi } \rpar} \over {\sqrt {\lpar {\alpha ^{\setnum{2}} \plus \tan ^{\setnum{2}} \phi } \rpar} \lpar {\lambda \sin \theta \minus \mu \cos \theta } \rpar}}} \right)

Converting this last expression to geodetic latitude, it then becomes:

(35)
\gamma \equals \arctan \left( {{{\lpar {1 \plus \alpha \tan ^{\setnum{2}} \psi } \rpar} \over {\sqrt {\lpar {1 \plus \tan ^{\setnum{2}} \psi } \rpar} \lpar {\lambda \sin \theta \minus \mu \cos \theta } \rpar}}} \right)

When Equations 20 and 35, are combined, other relationships for azimuth on the GE are obtained, e.g.:

(36)
\sin \gamma \equals {{1 \plus \alpha \tan ^{\setnum{2}} \psi } \over {\sqrt {1 \plus \tan ^{\setnum{2}} \psi } }}{{\sec \delta } \over {\sqrt {\lambda ^{\setnum{2}} \plus \mu ^{\setnum{2}} \plus 1} }}

With re-arrangement using Equation 9, Equation 36 can be re-written as:

(37)
{{\cos \psi \sin \gamma } \over {1 \minus \varepsilon ^{\setnum{2}} \sin ^{\setnum{2}} \psi }} \equals \cos \phi _{v} \sec \delta

Which reduces for the GC (ε=0, Ψ=φ) to:

(38)
\cos \phi \sin \gamma \equals \cos \phi _{v}

These two expressions show that the azimuth γ0 on crossing the equator (φ=0) is related to the vertex (N or S) towards which the track is aiming by:

(39)
\gamma _{\setnum{0}} \equals {\pi \over 2} \minus \phi _{v}

5. CONCLUDING REMARKS

Methods requiring rules for spherical triangles to obtain solutions have served navigation calculations based on a sphere quite well over the years. Unfortunately, these methods are not helpful when performing navigation calculations on the spheroidal Earth. Results from the analysis shown here demonstrate that vector methods provide a direct path towards acquiring solutions for azimuth. The results obtained provide three compact vector expressions plus other scalar expressions relating latitude and azimuth. The variety of expressions developed here provides the navigator with a selection of methods for calculating azimuth. A by-product of this work has been the repair of an error of principle in a previous paper. It goes without saying of course that the vector solutions presented here work for the sphere just as well when ellipticity is set to zero.

References

REFERENCES

Bowditch, (1981) American Practical Navigator Vol.II. p612. Defense Mapping Agency.Google Scholar
Earle, Michael A. (2000). Vector Solutions for Navigation on a Great Ellipse. The Journal of Navigation 53, 473.CrossRefGoogle Scholar
Figure 0

Figure 1.

Figure 1

Figure 2.

Figure 2

Figure 3.