Py5Vector.data#

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

Examples#

 1v1 = py5.Py5Vector(1, 2, 3)
 2v2 = py5.Py5Vector(1, 10, 100)
 3
 4print(v1)
 5# Py5Vector3D(1., 2., 3.)
 6
 7v1 *= v2.data
 8
 9print(v1)
10# Py5Vector3D(1., 20., 300.)

Description#

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

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