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

Method __truediv__

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

Source from the content-addressed store, hash-verified

88 return self
89
90 def __truediv__(self, other):
91 if isinstance(other, Vector2Ex):
92 res = vector2_divide(self, other)
93 return self.to_Vec2(res)
94 return Vector2Ex(self.x / other, self.y / other)
95
96 def __itruediv__(self, other):
97 if isinstance(other, Vector2Ex):

Callers

nothing calls this directly

Calls 2

to_Vec2Method · 0.95
Vector2ExClass · 0.85

Tested by

no test coverage detected