MCPcopy Create free account
hub / github.com/electronstudio/raylib-python-cffi / __add__

Method __add__

examples/extra/vector2_extended.py:40–43  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

38 return False
39
40 def __add__(self, other):
41 if isinstance(other, Vector2Ex):
42 return Vector2Ex(self.x + other.x, self.y + other.y)
43 return Vector2Ex(self.x + other, self.y + other)
44
45 def __iadd__(self, other):
46 if isinstance(other, Vector2Ex):

Callers

nothing calls this directly

Calls 1

Vector2ExClass · 0.85

Tested by

no test coverage detected