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

Module nvectorBase

(INTERNAL) Base classes LatLonNvectorBase and NvectorBase and function sumOf for N-vectorial ellipsoidal and spherical Cartesians and LatLons.

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: 20.01.22

Classes
  NvectorBase
Base class for ellipsoidal and spherical Nvectors.
  LatLonNvectorBase
(INTERNAL) Base class for n-vector-based ellipsoidal and spherical LatLon classes.
Functions
 
sumOf(nvectors, Vector=None, h=None, **kwds)
Return the vectorial sum of two or more n-vectors.
Variables
  NorthPole = NvectorBase(0.0, 0.0, 1.0)
North pole (Nvector).
  SouthPole = NvectorBase(0.0, 0.0, -1.0)
South pole (Nvector).
Function Details

sumOf(nvectors, Vector=None, 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) or None.
  • h - Optional height, overriding the mean height (meter).
  • kwds - Optional, additional Vector keyword arguments, ignored if Vector=None.
Returns:
Vectorial sum (Vector) or a Vector4Tuple(x, y, z, h) if Vector=None.
Raises: