Py5Vector.y

Py5Vector.y

The vector’s y 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 y dimension value. This is the vector’s 2nd dimension.

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