MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / __sub__

Method __sub__

Python/Turtle.py:160–161  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

158 return Vec2D(self[0]*other, self[1]*other)
159 return NotImplemented
160 def __sub__(self, other):
161 return Vec2D(self[0]-other[0], self[1]-other[1])
162 def __neg__(self):
163 return Vec2D(-self[0], -self[1])
164 def __abs__(self):

Callers

nothing calls this directly

Calls 1

Vec2DClass · 0.85

Tested by

no test coverage detected