Home | Trees | Indices | Help |
|
---|
|
object --+ | named._Named --+ | named._NamedBase --+ | latlonBase.LatLonBase --+ | nvectorBase.LatLonNvectorBase --+ | object --+ | | | named._Named --+ | | | named._NamedBase --+ | | | latlonBase.LatLonBase --+ | | | ellipsoidalBase.LatLonEllipsoidalBase --+ | LatLon
An n-vector-based, ellipsoidal LatLon point.
Example:
>>> from ellipsoidalNvector import LatLon >>> p = LatLon(52.205, 0.119) # height=0, datum=Datums.WGS84
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
Properties | |
Ecef Get the ECEF class (EcefVeness), lazily. |
|
Inherited from Inherited from Inherited from Inherited from |
Method Details |
Calculate the local delta from this to an other point. The delta is returned as a North-East-Down (NED) vector. Note, this is a linear delta, unrelated to a geodesic on the ellipsoid. The points need not be defined on the same datum.
Example: >>> a = LatLon(49.66618, 3.45063) >>> b = LatLon(48.88667, 2.37472) >>> delta = a.deltaTo(b) # [N:-86126, E:-78900, D:1069] >>> d = delta.length # 116807.681 m >>> b = delta.bearing # 222.493° >>> e = delta.elevation # -0.5245° |
Calculate the destination point using the supplied NED delta from this point.
Example: >>> a = LatLon(49.66618, 3.45063) >>> delta = Ned(-86126, -78900, 1069) # from Aer(222.493, -0.5245, 116807.681) >>> b = a.destinationNed(delta) # 48.886669°N, 002.374721°E or 48°53′12.01″N, 002°22′29.0″E +0.20m JS name: destinationPoint. |
Approximate the distance from this to an other point.
Example: >>> p = LatLon(52.205, 0.119) >>> q = LatLon(48.857, 2.351); >>> d = p.distanceTo(q) # 404300 |
DEPRECATED, use method isequalTo.
|
Compare this point with an other point.
See Also:
Method Example: >>> p = LatLon(52.205, 0.119) >>> q = LatLon(52.205, 0.119) >>> e = p.isequalTo(q) # True |
Return the point at given fraction between this and an other point.
Example: >>> p = LatLon(52.205, 0.119) >>> q = LatLon(48.857, 2.351) >>> p = p.intermediateTo(q, 0.25) # 51.3721°N, 000.7073°E JS name: intermediatePointTo. |
Convert this point to an
|
Convert this point to Nvector components, including height.
Example: >>> p = LatLon(45, 45) >>> n = p.toNvector() >>> n.toStr() # [0.50, 0.50, 0.70710] |
Property Details |
EcefGet the ECEF class (EcefVeness), lazily.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed May 4 16:33:51 2022 | http://epydoc.sourceforge.net |