MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / __rmul__

Method __rmul__

tools/python-3.11.9-amd64/Lib/turtle.py:259–262  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

257 return self[0]*other[0]+self[1]*other[1]
258 return Vec2D(self[0]*other, self[1]*other)
259 def __rmul__(self, other):
260 if isinstance(other, int) or isinstance(other, float):
261 return Vec2D(self[0]*other, self[1]*other)
262 return NotImplemented
263 def __sub__(self, other):
264 return Vec2D(self[0]-other[0], self[1]-other[1])
265 def __neg__(self):

Callers

nothing calls this directly

Calls 1

Vec2DClass · 0.85

Tested by

no test coverage detected