MCPcopy Index your code
hub / github.com/python/cpython / __neg__

Method __neg__

Lib/turtle.py:261–262  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

259 def __sub__(self, other):
260 return Vec2D(self[0]-other[0], self[1]-other[1])
261 def __neg__(self):
262 return Vec2D(-self[0], -self[1])
263 def __abs__(self):
264 return math.hypot(*self)
265 def rotate(self, angle):

Callers

nothing calls this directly

Calls 1

Vec2DClass · 0.70

Tested by

no test coverage detected