n_EA_E_and_p_AB_E2n_EB_E: Find position B from position A and delta In nvctr: The n-vector Approach to Geographical Position Calculations using an Ellipsoidal Model of Earth

Description

Given the n-vector for position A (n_EA_E) and the position-vector from position A to position B (p_AB_E), the output is the n-vector of position B (n_EB_E) and depth of B (z_EB).

Usage

 1 2 3 4 5 6 7 n_EA_E_and_p_AB_E2n_EB_E( n_EA_E, p_AB_E, z_EA = 0, a = 6378137, f = 1/298.257223563 )

Arguments

 n_EA_E n-vector of position A, decomposed in E (3x1 vector) (no unit) p_AB_E Position vector from A to B, decomposed in E (3x1 vector) (m) z_EA Depth of system A, relative to the ellipsoid (z_EA = -height) (m, default 0) a Semi-major axis of the Earth ellipsoid (m, default [WGS-84] 6378137) f Flattening of the Earth ellipsoid (no unit, default [WGS-84] 1/298.257223563)

Details

The calculation is exact, taking the ellipticity of the Earth into account.

It is also nonsingular as both n-vector and p-vector are nonsingular (except for the center of the Earth). The default ellipsoid model used is WGS-84, but other ellipsoids (or spheres) might be specified.

Value

a list with n-vector of position B, decomposed in E (3x1 vector) (no unit) and the depth of system B, relative to the ellipsoid (z_EB = -height)

References

Kenneth Gade A Nonsingular Horizontal Position Representation. The Journal of Navigation, Volume 63, Issue 03, pp 395-417, July 2010.