Py5Vector.copy#

Create an identical copy of this Py5Vector instance.

Examples#

 1v1 = py5.Py5Vector(1, 2, 3)
 2
 3print(v1)
 4# Py5Vector3D([1., 2., 3.])
 5
 6v2 = 10 * v1.copy
 7
 8print(v1)
 9# Py5Vector3D([1., 2., 3.])
10print(v2)
11# Py5Vector3D([10., 20., 30.])

Description#

Create an identical copy of this Py5Vector instance.

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