Skip to content

Commit 5fa3764

Browse files
authored
fix usage of vector_2 that was renamed to vector2
1 parent 6be4eab commit 5fa3764

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

examples/extra/vector2_extended.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,13 @@ def __imul__(self, other):
8989

9090
def __truediv__(self, other):
9191
if isinstance(other, Vector2Ex):
92-
res = vector_2divide(self, other)
92+
res = vector2_divide(self, other)
9393
return self.to_Vec2(res)
9494
return Vector2Ex(self.x / other, self.y / other)
9595

9696
def __itruediv__(self, other):
9797
if isinstance(other, Vector2Ex):
98-
res = vector_2divide(self, other)
98+
res = vector2_divide(self, other)
9999
else:
100100
res = vector2_scale(self, 1/other)
101101
self.x = res.x
@@ -125,13 +125,13 @@ def clamp_value(self, min_val: float, max_val: float):
125125
return self.to_Vec2(res)
126126

127127
def distance(self, vec2):
128-
return vector_2distance(self, vec2)
128+
return vector2_distance(self, vec2)
129129

130130
def distance_sqr(self, vec2) -> float:
131-
return vector_2distance_sqr(self, vec2)
131+
return vector2_distance_sqr(self, vec2)
132132

133133
def dot_product(self, vec2) -> float:
134-
return vector_2dot_product(self, vec2)
134+
return vector2_dot_product(self, vec2)
135135

136136
def invert(self):
137137
res = vector2_invert(self)

0 commit comments

Comments
 (0)