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

Method __mul__

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

Source from the content-addressed store, hash-verified

73 return Vector2Ex(other - self.x, other - self.y)
74
75 def __mul__(self, other):
76 if isinstance(other, Vector2Ex):
77 res = vector2_multiply(self, other)
78 return self.to_Vec2(res)
79 return Vector2Ex(self.x * other, self.y * other)
80
81 def __imul__(self, other):
82 if isinstance(other, Vector2Ex):

Callers

nothing calls this directly

Calls 2

to_Vec2Method · 0.95
Vector2ExClass · 0.85

Tested by

no test coverage detected