Package pygeodesy :: Module ellipsoidalNvector :: Class Cartesian |
[frames] | no frames]

# Class Cartesian

       object --+
                |
      bases.Named --+
                    |
          bases.Based --+
                        |
        bases.VectorBased --+
                            |
            vector3d.Vector3d --+
                                |
    ellipsoidalBase.CartesianBase --+
                                    |
                                   Cartesian

Extended to convert (geocentric) Cartesian points to (ellipsoidal) Nvector and n-vector-based geodetic LatLon.

Instance Methods
toLatLon(self, datum=Datum(name='WGS84', ellipsoid=Ellipsoids.WGS84, transform=Tran`...`, LatLon=<class 'pygeodesy.ellipsoidalNvector.LatLon'>) Convert this (geocentric) cartesian (x/y/z) point to an (ellipsoidal) geodetic point on the specified datum. |
toNvector(self, datum=Datum(name='WGS84', ellipsoid=Ellipsoids.WGS84, transform=Tran`...`) Convert this cartesian to an (ellipsoidal) n-vector. |
Inherited from `ellipsoidalBase.CartesianBase`: `to3llh`, `toStr` Inherited from `vector3d.Vector3d`: `__abs__`, `__add__`, `__cmp__`, `__div__`, `__eq__`, `__ge__`, `__gt__`, `__iadd__`, `__imatmul__`, `__imul__`, `__init__`, `__isub__`, `__itruediv__`, `__le__`, `__lt__`, `__matmul__`, `__mul__`, `__ne__`, `__neg__`, `__pos__`, `__radd__`, `__rmatmul__`, `__rmul__`, `__rsub__`, `__sub__`, `__truediv__`, `angleTo`, `copy`, `cross`, `dividedBy`, `dot`, `equals`, `isequalTo`, `minus`, `negate`, `others`, `parse`, `plus`, `rotate`, `rotateAround`, `sum`, `times`, `to2ab`, `to2ll`, `to3xyz`, `unit` Inherited from `bases.Based`: `__repr__`, `__str__`, `classof`, `toStr2` Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__setattr__`, `__sizeof__`, `__subclasshook__`

Properties
Inherited from `vector3d.Vector3d`: `crosserrors`, `length`, `x`, `y`, `z` Inherited from `bases.Named`: `classname`, `classnaming`, `name` Inherited from `object`: `__class__`

Method Details

### toLatLon(self, datum=Datum(name='WGS84', ellipsoid=Ellipsoids.WGS84, transform=Tran`...`, LatLon=<class 'pygeodesy.ellipsoidalNvector.LatLon'>) |
Convert this (geocentric) cartesian (x/y/z) point to an (ellipsoidal) geodetic point on the specified datum. Parameters: `datum` - Optional datum to use (Datum). `LatLon` - Optional ellipsoidal (sub-)class to use for the point (LatLon) or `None`. Returns: The ellipsoidal geodetic point (LatLon) or 3-tuple (`degrees90`, `degrees180`, height) if LatLon is `None`.

### toNvector(self, datum=Datum(name='WGS84', ellipsoid=Ellipsoids.WGS84, transform=Tran`...`) |
Convert this cartesian to an (ellipsoidal) n-vector. Parameters: `datum` - Optional datum to use (Datum). Returns: The ellipsoidal n-vector (Nvector). Raises: `ValueError` - The Cartesian at origin. Example:
    >>> from ellipsoidalNvector import LatLon
    >>> c = Cartesian(3980581, 97, 4966825)
    >>> n = c.toNvector()  # (0.62282, 0.000002, 0.78237, +0.24)