n-vector

Source: Wikipedia, the free encyclopedia.

The n-vector representation (also called geodetic normal or ellipsoid normal vector) is a three-parameter

non-singular representation well-suited for replacing geodetic coordinates (latitude and longitude) for horizontal position representation
in mathematical calculations and computer algorithms.

Geometrically, the n-vector for a given position on an

Earth-centered Earth-fixed coordinate system. It behaves smoothly at all Earth positions, and it holds the mathematical one-to-one
property.

More in general, the concept can be applied to representing positions on the boundary of a strictly

bounded subset of k-dimensional Euclidean space, provided that that boundary is a differentiable manifold
. In this general case, the n-vector consists of k parameters.

General properties

A

normal vector to a strictly convex surface can be used to uniquely define a surface position. n-vector is an outward-pointing normal vector with unit length
used as a position representation. [1]

For most applications the surface is the

geodetic latitude
, as shown in the figure.

Alt
The direction of n-vector corresponds to geodetic latitude

A surface position has two

singularities. This is similar to orientation, which has three degrees of freedom, but all three-parameter representations have singularities.[2] In both cases the singularities are avoided by adding an extra parameter, i.e. to use n-vector (three parameters) to represent horizontal position and a unit quaternion (four parameters) to represent orientation
.

n-vector is a one-to-one representation, meaning that any surface position corresponds to one unique n-vector, and any n-vector corresponds to one unique surface position.

As a Euclidean 3D vector, standard 3D vector algebra can be used for the position calculations, and this makes n-vector well-suited for most horizontal position calculations.

Converting latitude/longitude to n-vector

Based on the definition of the

ECEF
coordinate system, called e, it is clear that going from latitude/longitude to n-vector, is achieved by:

The superscript e means that n-vector is

scalar projection
of n-vector onto the x-axis of e, the second onto the y-axis of e etc.). Note that the equation is exact both for spherical and ellipsoidal Earth model.

Converting n-vector to latitude/longitude

From the three components of n-vector, , , and , latitude can be found by using:

The rightmost expression is best suited for computer program implementation.[1]

Longitude is found using:

In these expressions should be implemented using a call to

singularity of longitude is evident as atan2
(0,0) is undefined. Note that the equations are exact both for spherical and ellipsoidal Earth model.

Example: Great circle distance

Finding the

arctan. The expressions, which are successively more complex to avoid numerical instabilities, are not easy to find, and since they are based on latitude and longitude, the Pole singularities may become a problem. They also contain deltas of latitude and longitude, which in general should be used with care near the ±180° meridian
and the Poles.

Solving the same problem using n-vector is simpler due to the possibility of using vector algebra. The arccos expression is achieved from the dot product, while the magnitude of the cross product gives the arcsin expression. Combining the two gives the arctan expression:[1]

where and are the n-vectors representing the two positions a and b. is the angular difference, and thus the great-circle distance is achieved by multiplying with the Earth radius. This expression also works at the poles and at the ±180° meridian.

There are several other examples where the use of vector algebra simplifies standard problems.[1] For a general comparison of the various representations, see the horizontal position representations page.

See also

References

External links