nvector.objects.diff_positions

nvector.objects.diff_positions(positionA, positionB)[source][source]
Return delta vector from positions A to B.
Parameters:

positionA, positionB: Nvector, GeoPoint or ECEFvector objects

position A and B, decomposed in E.

Returns:

p_AB_E: ECEFvector

Cartesian position vector(s) from A to B, decomposed in E.

Notes

The calculation is excact, taking the ellipsity of the Earth into account. It is also non-singular as both n-vector and p-vector are non-singular (except for the center of the Earth).