mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-21 20:10:17 +00:00
Update vec.py
This commit is contained in:
parent
de736e8776
commit
a947f7249f
@ -11,6 +11,9 @@ class vec2:
|
||||
def __eq__(self, other):
|
||||
return self.x == other.x and self.y == other.y
|
||||
|
||||
def __ne__(self, other):
|
||||
return not self == other
|
||||
|
||||
x = vec2(0, 0)
|
||||
for i in range(10000000):
|
||||
x += vec2(1, 1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user