HOME

TheInfoList



OR:

The ''n''-vector representation (also called geodetic normal or ellipsoid normal vector) is a three-parameter
non-singular Singular may refer to: * Singular, the grammatical number that denotes a unit quantity, as opposed to the plural and other forms * Singular or sounder, a group of boar, see List of animal names * Singular (band), a Thai jazz pop duo *'' Singular ...
representation well-suited for replacing
geodetic coordinates Geodetic coordinates are a type of curvilinear orthogonal coordinate system used in geodesy based on a '' reference ellipsoid''. They include geodetic latitude (north/south) , ''longitude'' (east/west) , and ellipsoidal height (also known as g ...
(
latitude In geography, latitude is a geographic coordinate system, geographic coordinate that specifies the north-south position of a point on the surface of the Earth or another celestial body. Latitude is given as an angle that ranges from −90° at t ...
and
longitude Longitude (, ) is a geographic coordinate that specifies the east- west position of a point on the surface of the Earth, or another celestial body. It is an angular measurement, usually expressed in degrees and denoted by the Greek lett ...
) for horizontal position representation in mathematical calculations and computer algorithms. Geometrically, the ''n''-vector for a given position on an
ellipsoid An ellipsoid is a surface that can be obtained from a sphere by deforming it by means of directional Scaling (geometry), scalings, or more generally, of an affine transformation. An ellipsoid is a quadric surface;  that is, a Surface (mathemat ...
is the outward-pointing
unit vector In mathematics, a unit vector in a normed vector space is a Vector (mathematics and physics), vector (often a vector (geometry), spatial vector) of Norm (mathematics), length 1. A unit vector is often denoted by a lowercase letter with a circumfle ...
that is normal in that position to the ellipsoid. For representing horizontal positions on Earth, the ellipsoid is a
reference ellipsoid An Earth ellipsoid or Earth spheroid is a mathematical figure approximating the Earth's form, used as a reference frame for computations in geodesy, astronomy, and the geosciences. Various different ellipsoids have been used as approximation ...
and the vector is decomposed in an Earth-centered Earth-fixed
coordinate system In geometry, a coordinate system is a system that uses one or more numbers, or coordinates, to uniquely determine and standardize the position of the points or other geometric elements on a manifold such as Euclidean space. The coordinates are ...
. It behaves smoothly at all Earth positions, and it holds the mathematical one-to-one property. More generally, the concept can be applied to representing positions on the boundary of a strictly
convex Convex or convexity may refer to: Science and technology * Convex lens, in optics Mathematics * Convex set, containing the whole line segment that joins points ** Convex polygon, a polygon which encloses a convex set of points ** Convex polytop ...
bounded subset of ''k''-dimensional
Euclidean space Euclidean space is the fundamental space of geometry, intended to represent physical space. Originally, in Euclid's ''Elements'', it was the three-dimensional space of Euclidean geometry, but in modern mathematics there are ''Euclidean spaces ...
, provided that that boundary is a
differentiable manifold In mathematics, a differentiable manifold (also differential manifold) is a type of manifold that is locally similar enough to a vector space to allow one to apply calculus. Any manifold can be described by a collection of charts (atlas). One ...
. In this general case, the ''n''-vector consists of ''k'' parameters.


General properties

A
normal vector In geometry, a normal is an object (e.g. a line, ray, or vector) that is perpendicular to a given object. For example, the normal line to a plane curve at a given point is the infinite straight line perpendicular to the tangent line to the cu ...
to a strictly
convex Convex or convexity may refer to: Science and technology * Convex lens, in optics Mathematics * Convex set, containing the whole line segment that joins points ** Convex polygon, a polygon which encloses a convex set of points ** Convex polytop ...
surface can be used to uniquely define a surface position. ''n''-vector is an outward-pointing normal vector with
unit length Unit may refer to: General measurement * Unit of measurement, a definite magnitude of a physical quantity, defined and adopted by convention or by law **International System of Units (SI), modern form of the metric system **English units, histo ...
used as a position representation. For most applications the surface is the
reference ellipsoid An Earth ellipsoid or Earth spheroid is a mathematical figure approximating the Earth's form, used as a reference frame for computations in geodesy, astronomy, and the geosciences. Various different ellipsoids have been used as approximation ...
of the Earth, and thus ''n''-vector is used to represent a horizontal position. Hence, the angle between ''n''-vector and the equatorial plane corresponds to
geodetic latitude Geodetic coordinates are a type of curvilinear orthogonal coordinate system used in geodesy based on a ''reference ellipsoid''. They include geodetic latitude (north/south) , ''longitude'' (east/west) , and ellipsoidal height (also known as geo ...
, as shown in the figure. A surface position has two
degrees of freedom In many scientific fields, the degrees of freedom of a system is the number of parameters of the system that may vary independently. For example, a point in the plane has two degrees of freedom for translation: its two coordinates; a non-infinite ...
, and thus two parameters are sufficient to represent any position on the surface. On the reference ellipsoid,
latitude In geography, latitude is a geographic coordinate system, geographic coordinate that specifies the north-south position of a point on the surface of the Earth or another celestial body. Latitude is given as an angle that ranges from −90° at t ...
and
longitude Longitude (, ) is a geographic coordinate that specifies the east- west position of a point on the surface of the Earth, or another celestial body. It is an angular measurement, usually expressed in degrees and denoted by the Greek lett ...
are common parameters for this purpose, but like all ''two-parameter representations'', they have singularities. This is similar to
orientation Orientation may refer to: Positioning in physical space * Map orientation, the relationship between directions on a map and compass directions * Orientation (housing), the position of a building with respect to the sun, a concept in building des ...
, which has three degrees of freedom, but all ''three-parameter representations'' have singularities. 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 In mathematics, the quaternion number system extends the complex numbers. Quaternions were first described by the Irish mathematician William Rowan Hamilton in 1843 and applied to mechanics in three-dimensional space. The algebra of quater ...
(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. For a general comparison of the various representations, see the horizontal position representations page.


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: :\mathbf n^e=\left \begin \cos (\mathrm)\cos (\mathrm) \\ \cos (\mathrm)\sin (\mathrm) \\ \sin (\mathrm) \\ \end \right/math> The superscript ''e'' means that ''n''-vector is decomposed in the coordinate system ''e'' (i.e. the first component is the 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, n_x^e, n_y^e, and n_z^e, latitude can be found by using: :\mathrm=\arcsin\left( n_z^e \right)=\arctan\left( \frac \right) The rightmost expression is best suited for computer program implementation. Longitude is found using: :\mathrm=\arctan\left(\frac \right) In these expressions \arctan(y/x) should be implemented using a call to
atan2 In computing and mathematics, the function (mathematics), function atan2 is the 2-Argument of a function, argument arctangent. By definition, \theta = \operatorname(y, x) is the angle measure (in radians, with -\pi 0, \\ mu \arctan\left(\fr ...
(''y'',''x''). The Pole singularity of longitude is evident as
atan2 In computing and mathematics, the function (mathematics), function atan2 is the 2-Argument of a function, argument arctangent. By definition, \theta = \operatorname(y, x) is the angle measure (in radians, with -\pi 0, \\ mu \arctan\left(\fr ...
(0,0) is undefined. Note that the equations are exact both for spherical and ellipsoidal Earth model.


Example 1: Great circle distance

Finding the great circle distance between two horizontal positions (assuming spherical Earth) is usually done by means of latitude and longitude. Three different expressions for this distance are common; the first is based on arccos, the second is based on
arcsin In mathematics, the inverse trigonometric functions (occasionally also called ''antitrigonometric'', ''cyclometric'', or ''arcus'' functions) are the inverse functions of the trigonometric functions, under suitably restricted domains. Specific ...
, and the final is based on
arctan In mathematics, the inverse trigonometric functions (occasionally also called ''antitrigonometric'', ''cyclometric'', or ''arcus'' functions) are the inverse functions of the trigonometric functions, under suitably restricted domains. Specific ...
. 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 A river delta is a landform, wikt:archetype#Noun, archetypically triangular, created by the deposition (geology), deposition of the sediments that are carried by the waters of a river, where the river merges with a body of slow-moving water or ...
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 In mathematics, the dot product or scalar productThe term ''scalar product'' means literally "product with a Scalar (mathematics), scalar as a result". It is also used for other symmetric bilinear forms, for example in a pseudo-Euclidean space. N ...
, while the
magnitude Magnitude may refer to: Mathematics *Euclidean vector, a quantity defined by both its magnitude and its direction *Magnitude (mathematics), the relative size of an object *Norm (mathematics), a term for the size or length of a vector *Order of ...
of the
cross product In mathematics, the cross product or vector product (occasionally directed area product, to emphasize its geometric significance) is a binary operation on two vectors in a three-dimensional oriented Euclidean vector space (named here E), and ...
gives the arcsin expression. Combining the two gives the arctan expression: :\begin & \Delta \sigma=\arccos\left( \mathbf n_a\cdot \mathbf n_b \right) \\ & \Delta \sigma=\arcsin\left( \left, \mathbf n_a\times \mathbf n_b \ \right) \\ & \Delta \sigma=\arctan\left( \frac \right) \\ \end where \mathbf n_a and \mathbf n_b are the ''n''-vectors representing the two positions ''a'' and ''b''. \Delta\sigma 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.


Additional examples

''n''-vector is also well-suited for common calculations such as: * Interpolated position * Mean/center position (midpoint of multiple positions) * Weighted average position (e.g. of geographic data points) * Intersection of two paths * Cross track distance (cross track error) * Along track distance * Euclidean distance * Triangulated position * Absolute plus delta position (delta position may be azimuth & distance) * Difference between absolute positions * The first and second (direct/inverse) geodetic problems * Find north and east directions * Find horizontal and vertical components of a vector Equations and code for these calculations can be found in the
external links An internal link is a type of hyperlink on a web page to another page or resource, such as an image or document, on the same website or domain. It is the opposite of an external link, a link that directs a user to content that is outside its d ...
below or reference. The calculations will work equally well over long distances, and for any global positions.


See also

*
Earth section paths Earth section paths are plane curves defined by the intersection of an earth ellipsoid and a Plane (geometry), plane (ellipsoid plane sections). Common examples include the ''great ellipse'' (containing the center of the ellipsoid) and normal sec ...
* Horizontal position representation *
Latitude In geography, latitude is a geographic coordinate system, geographic coordinate that specifies the north-south position of a point on the surface of the Earth or another celestial body. Latitude is given as an angle that ranges from −90° at t ...
*
Longitude Longitude (, ) is a geographic coordinate that specifies the east- west position of a point on the surface of the Earth, or another celestial body. It is an angular measurement, usually expressed in degrees and denoted by the Greek lett ...
*
Universal Transverse Mercator coordinate system The Universal Transverse Mercator (UTM) is a map projection system for assigning Geographic coordinate system, coordinates to locations on the surface of the Earth. Like the traditional method of latitude and longitude, it is a horizontal positi ...
*
Quaternion In mathematics, the quaternion number system extends the complex numbers. Quaternions were first described by the Irish mathematician William Rowan Hamilton in 1843 and applied to mechanics in three-dimensional space. The algebra of quater ...


References

{{Reflist


External links


Solving 10 problems by means of the ''n''-vector

''n''-vector libraries on GitHub in Python, C++, Java, C#, and most other languages
Navigation Geodesy Geographic position Geographic coordinate systems Ellipsoids