Home | Trees | Indices | Help |
|
---|
|
object --+ | bases.Base --+ | vector3d.Vector3d --+ | Nvector
Base class for ellipsoidal and spherical Nvector.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from |
Class Variables | |
H =
Heigth prefix (string), '↑' in JS version |
Properties | |
h Get the height above surface (meter). |
|
Inherited from Inherited from |
Method Details |
New n-vector normal to the earth's surface.
Example: >>> from sphericalNvector import Nvector >>> v = Nvector(0.5, 0.5, 0.7071, 1) >>> v.toLatLon() # 45.0°N, 045.0°E, +1.00m |
Copy this vector.
|
Convert this n-vector to (geodetic) lat-, longitude and height.
|
Return this n-vector as a 4-tuple.
|
Return a string representation of this n-vector. Height component is only included if non-zero.
Example: >>> Nvector(0.5, 0.5, 0.7071).toStr() # (0.5, 0.5, 0.7071) >>> Nvector(0.5, 0.5, 0.7071, 1).toStr(-3) # (0.500, 0.500, 0.707, +1.00) |
Normalize this vector to unit length.
|
Property Details |
hGet the height above surface (meter).
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Jun 20 12:31:43 2017 | http://epydoc.sourceforge.net |