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

Method __sub__

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

Source from the content-addressed store, hash-verified

56 return self + other
57
58 def __sub__(self, other):
59 if isinstance(other, Vector2Ex):
60 return Vector2Ex(self.x - other.x, self.y - other.y)
61 return Vector2Ex(self.x - other, self.y - other)
62
63 def __isub__(self, other):
64 if isinstance(other, Vector2Ex):

Callers

nothing calls this directly

Calls 1

Vector2ExClass · 0.85

Tested by

no test coverage detected