Home | Trees | Indices | Help |
|
---|
|
object --+ | bases.Base --+ | vector3d.Vector3d --+ | nvector.Nvector --+ | Nvector
An n-vector is a position representation using a (unit) vector normal to the earth ellipsoid. Unlike lat-/longitude points, n-vectors have no singularities or discontinuities.
For many applications, n-vectors are more convenient to work with than other position representations like lat-/longitude, earth-centred earth-fixed (ECEF) vectors, UTM coordinates, etc.
Note commonality with sphericalNvector.Nvector.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from |
Class Variables | |
Inherited from |
Properties | |
datum Gets this n-vector's datum (Datum). |
|
Inherited from Inherited from Inherited from |
Method Details |
New n-vector normal to the earth's surface.
Example: >>> from ellipsoidalNvector import Nvector >>> v = Nvector(0.5, 0.5, 0.7071, 1) >>> v.toLatLon() # 45.0°N, 045.0°E, +1.00m |
Copies this vector.
|
Converts this n-vector to an (ellipsoidal) geodetic point.
Example: >>> v = Nvector(0.5, 0.5, 0.7071) >>> p = v.toLatLon() # 45.0°N, 45.0°E |
Converts this n-vector to a cartesian point.
Example: >>> v = Nvector(0.5, 0.5, 0.7071) >>> c = v.toCartesian() # [3194434, 3194434, 4487327] >>> p = c.toLatLon() # 45.0°N, 45.0°E |
Normalizes this vector to unit length.
|
Property Details |
datumGets this n-vector's datum (Datum).
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue May 30 11:06:29 2017 | http://epydoc.sourceforge.net |