Package pygeodesy :: Module booleans :: Class _CompositeBase |
[frames] | no frames]

# Class _CompositeBase

      object --+
               |
    named._Named --+
                   |
                  _CompositeBase

Known Subclasses:
  - _CompositeFHP
  - , _CompositeGH
  - , _CompositeEdges

(INTERNAL) Base class for BooleanFHP and BooleanGH (`_CompositeFHP` and `_CompositeGH`).

Instance Methods
__init__(self, lls, name='', kind='', eps=2.220446049250313e-16) (INTERNAL) See BooleanFHP and BooleanGH. |
__contains__(self, point) Is the `point` in one of the clips? |
__eq__(self, other) Is this composite equivalent to an `other`, i.e. |
__iter__(self) Yield all points, duplicates and intersections. |
__ne__(self, other) See method `__eq__`. |
__len__(self) Return the total number of points. |
__repr__(self) String `repr` of this composite. |
__str__(self) String `str` of this composite. |
clipids(self) Return a tuple with all `clipid`s, ordered. |
toLatLon(self, LatLon=None, closed=False, **LatLon_kwds) Yield all (non-duplicate) points and intersections as an instance of `LatLon`. |
Inherited from `named._Named`: `__imatmul__`, `__matmul__`, `__rmatmul__`, `attrs`, `classof`, `copy`, `dup`, `methodname`, `rename`, `toRepr`, `toStr`, `toStr2` Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__setattr__`, `__sizeof__`, `__subclasshook__`

Properties
| eps Get the null edges tolerance (`degrees`, usually).
| raiser Get the option to throw ClipError exceptions (`bool`).
Inherited from `named._Named`: `classname`, `classnaming`, `iteration`, `name`, `named`, `named2`, `named3`, `named4` Inherited from `object`: `__class__`

Method Details

### __init__ (self, lls, name='', kind='', eps=2.220446049250313e-16) (Constructor) |
(INTERNAL) See BooleanFHP and BooleanGH. Overrides: object.__init__

### __eq__ (self, other) (Equality operator) |
Is this composite equivalent to an `other`, i.e. do both contain equivalent clips in the same or a different order? Two clips are considered equivalent if both have the same points etc. in the same order, possibly rotated.

### __repr__ (self) (Representation operator) |
String `repr` of this composite. Overrides: object.__repr__

### __str__ (self) (Informal representation operator) |
String `str` of this composite. Overrides: object.__str__

### toLatLon (self, LatLon=None, closed=False, **LatLon_kwds) |
Yield all (non-duplicate) points and intersections as an instance of `LatLon`. Arguments: `LatLon` - Class to use (`LatLon`) or if `None`, LatLonFHP or LatLonGH. `closed` - If `True`, close each clip (`bool`). `LatLon_kwds` - Optional, additional `LatLon` keyword arguments, ignore if `LatLon is None`. Raises: `TypeError` - Invalid `LatLon`. Note: For intersections, `height` is an instance of HeightX, otherwise of Height.

Property Details

### eps Get the null edges tolerance (`degrees`, usually). Get method: eps(self) - Get the null edges tolerance (`degrees`, usually). Set method: eps(self, eps) - Set the null edges tolerance (`degrees`, usually).

### raiser Get the option to throw ClipError exceptions (`bool`). Get method: raiser(self) - Get the option to throw ClipError exceptions (`bool`). Set method: raiser(self, throw) - Set the option to throw ClipError exceptions (`bool`).