Py5Vector.data

Py5Vector.data

Numpy array used to store the vector’s data values.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
v1 = py5.Py5Vector(1, 2, 3)
v2 = py5.Py5Vector(1, 10, 100)

print(v1)
# Py5Vector3D(1., 2., 3.)

v1 *= v2.data

print(v1)
# Py5Vector3D(1., 20., 300.)

Description

Numpy array used to store the vector’s data values.

Updated on January 16, 2022 16:51:21pm UTC