Package pygeodesy :: Module geodesici :: Class XDist
[frames] | no frames]

Class XDist

object --+        
         |        
      dict --+    
             |    
   named.ADict --+
                 |
                XDist

4-Item result from Intersector.All, Intersector.Closest and Intersector.Next with the intersection offsets sA, sB and sX0 in meter and the coincidence indicator c, an int, +1 for parallel, -1 for anti-parallel, 0 otherwise.

Instance Methods
new empty dictionary

__init__(self, sA=0, sB=0, c=0, sX0=0)
New XDist.
 
__add__(self, other)
 
__eq__(self, other)
x==y
 
__iadd__(self, other)
 
__le__(self, other)
x<=y
 
__lt__(self, other)
x<y
 
__ne__(self, other)
x!=y
 
L1(self, other=None)
Return the L1 distance.

Inherited from named.ADict: __getattr__, __repr__, __setattr__, __str__, set_, toRepr, toStr

Inherited from dict: __cmp__, __contains__, __delitem__, __ge__, __getattribute__, __getitem__, __gt__, __iter__, __len__, __new__, __setitem__, __sizeof__, clear, copy, fromkeys, get, has_key, items, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, update, values, viewitems, viewkeys, viewvalues

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __subclasshook__

Class Variables

Inherited from dict: __hash__

Properties

Inherited from named.ADict: iteration

Inherited from object: __class__

Method Details

__init__ (self, sA=0, sB=0, c=0, sX0=0)
(Constructor)

 

New XDist.

Arguments:
  • sA - Offset on geodesic line A (meter).
  • sB - Offset on geodesic line B (meter).
  • c - Coincidence indicator (int, +1 for parallel -1 for anti-parallel, 0 otherwise.
  • sX0 - Offset to X0 ({Cmeter}) or INT0.
Returns:
new empty dictionary

Overrides: object.__init__

__eq__ (self, other)
(Equality operator)

 

x==y

Overrides: dict.__eq__
(inherited documentation)

__le__ (self, other)
(Less-than-or-equals operator)

 

x<=y

Overrides: dict.__le__
(inherited documentation)

__lt__ (self, other)
(Less-than operator)

 

x<y

Overrides: dict.__lt__
(inherited documentation)

__ne__ (self, other)

 

x!=y

Overrides: dict.__ne__
(inherited documentation)