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

# Module vector3d

Generic 3-D vector base class Vector3d and function sumOf.

Pure Python implementation of vector-based functions by (C) Chris Veness 2011-2015 published under the same MIT Licence**, see Vector-based geodesy.

Version: 20.03.15

Classes
| CrossError Error raised for zero or near-zero vectorial cross products, occurring for coincident or colinear points, paths or bearings.
| VectorError Issue with class Vector3d or `*Nvector`.
| Vector3d Generic 3-D vector manipulation.

Functions
crosserrors(raiser=None) Report or ignore vectorial cross product errors. |
sumOf(vectors, Vector=<class 'pygeodesy.vector3d.Vector3d'>, **kwds) Compute the vectorial sum of several vectors. |

Function Details

### crosserrors(raiser=None) |
Report or ignore vectorial cross product errors. Parameters: `raiser` - Use `True` to throw or `False` to ignore CrossError exceptions. Use `None` to leave the setting unchanged. Returns: Previous setting (`bool`).

### sumOf(vectors, Vector=<class 'pygeodesy.vector3d.Vector3d'>, **kwds) |
Compute the vectorial sum of several vectors. Parameters: `vectors` - Vectors to be added (Vector3d[]). `Vector` - Optional class for the vectorial sum (Vector3d). `kwds` - Optional, additional `Vector` keyword arguments, ignored if `Vector=None`. Returns: Vectorial sum (`Vector`). Raises: `VectorError` - No `vectors`.