Package pygeodesy :: Module nvector |
[frames] | no frames]

# Module nvector

N-vector base class Nvector and function sumOf.

Pure Python implementation of `n-vector`-based geodesy tools for ellipsoidal earth models, transcribed from JavaScript originals by (C) Chris Veness 2005-2016 and published under the same MIT Licence**, see Vector-based geodesy.

Version: 19.07.12

Classes
| Nvector Base class for ellipsoidal and spherical Nvector.
| LatLonNvectorBase (INTERNAL) Base class for n-vector-based ellipsoidal and spherical `LatLon` classes.

Functions
sumOf(nvectors, Vector=<class 'pygeodesy.nvector.Nvector'>, h=None, **kwds) Return the vectorial sum of two or more n-vectors. |

Variables
| NorthPole = `Nvector(0.0, 0.0, 1.0)` North pole (Nvector).
| SouthPole = `Nvector(0.0, 0.0, -1.0)` South pole (Nvector).

Function Details

### sumOf(nvectors, Vector=<class 'pygeodesy.nvector.Nvector'>, h=None, **kwds) |
Return the vectorial sum of two or more n-vectors. Parameters: `nvectors` - Vectors to be added (Nvector[]). `Vector` - Optional class for the vectorial sum (Nvector). `kwds` - Optional, additional `Vector` keyword arguments. `h` - Optional height, overriding the mean height (`meter`). Returns: Vectorial sum (`Vector`). Raises: `VectorError` - No `nvectors`.