Py5Vector.x

Py5Vector.x

The vector’s x dimension value.

Examples

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

print(v.x, v.y)
# 1.0, 2.0

v.x = 0
v.y += 10

print(v.x, v.y)
# 0.0, 12.0

Description

The vector’s x dimension value. This is the vector’s 1st dimension.

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