Py5Vector.tolist()#

Return the vector’s values as a list.

Examples#

v1 = py5.Py5Vector(1, 2, 3)

print(v1.tolist())
# [1.0, 2.0, 3.0]

print(type(v1.tolist()))
# <class 'list'>

Description#

Return the vector’s values as a list. The length of the list will be equal to the vector’s dimension.

Signatures#

tolist() -> list[float]

Updated on September 01, 2022 16:36:02pm UTC