Polygon2DList
Canonical path: NemAll_Python_Geometry.Polygon2DList
List for Polygon2D objects
Methods:
-
__contains__–Check for a value in the list
-
__delitem__–Delete a list item
-
__eq__–Compare two lists
-
__getitem__–Get a list item
-
__init__–Initialize
-
__iter__–List iterator
-
__len__–Get the list length
-
__repr__–Create a string from the elements of the list
-
__setitem__–Set a list item
-
append–Append a list item
-
extend–Add the items from an iterable to the end of the list
__contains__
__contains__(value: Polygon2D) -> bool
Check for a value in the list
Parameters:
-
value(Polygon2D) –Value to check
Returns:
-
bool–State for value is in the list
__delitem__
__delitem__(value: Polygon2D)
__getitem__
__getitem__(index: int) -> Polygon2D
Get a list item
Parameters:
-
index(int) –Index of the item
Returns:
-
Polygon2D–Value for the index
__setitem__
__setitem__(index: int | slice, value: Polygon2D)
Set a list item
Parameters:
-
index(int | slice) –Index of the item
-
value(Polygon2D) –Value to item
extend
extend(iterable: Polygon2DList)
Add the items from an iterable to the end of the list
Parameters:
-
iterable(Polygon2DList) –Iterable to add
Placeholder