Skip to content

Vector2DList

Canonical path: NemAll_Python_Geometry.Vector2DList

List for Vector2D objects

__contains__

__contains__(value: Vector2D) -> bool

Check for a value in the list

Parameters:

Returns:

  • bool

    State for value is in the list

__delitem__

__delitem__(value: Vector2D)

Delete a list item

Parameters:

__eq__

__eq__(compare_list: Vector2DList) -> bool

Compare two lists

Parameters:

Returns:

  • bool

    Lists are equal state

__getitem__

__getitem__(index: int) -> Vector2D

Get a list item

Parameters:

  • index (int) –

    Index of the item

Returns:

__iadd__

__iadd__(eleList: list) -> Vector2DList

Add a list

Parameters:

  • eleList (list) –

    Vector2D list

Returns:

__init__ overloaded

__init__()

Initialize

__init__(ele: Vector2D)

Constructor with a Vector2D

Parameters:

__init__(eleList: list)

Constructor with a list of Vector2D

Parameters:

  • eleList (list) –

    Vector2D list

__iter__

__iter__() -> Iterator

List iterator

Returns:

  • Iterator

    List iterator

__len__

__len__() -> int

Get the list length

Returns:

  • int

    Length of the list

__repr__

__repr__() -> str

Create a string from the elements of the list

__setitem__

__setitem__(index: int | slice, value: Vector2D)

Set a list item

Parameters:

  • index (int | slice) –

    Index of the item

  • value (Vector2D) –

    Value to item

append

append(value: Vector2D)

Append a list item

Parameters:

extend overloaded

extend(iterable: Vector2DList)

Add the items from an iterable to the end of the list

Parameters:

extend(eleList: list)

Extend the list

Parameters:

  • eleList (list) –

    Vector2D list

Placeholder