Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RT-Thread/env-windows
/ __neg__
Method
__neg__
tools/python-3.11.9-amd64/Lib/turtle.py:265–266 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
263
def
__sub__(self, other):
264
return
Vec2D(self[0]-other[0], self[1]-other[1])
265
def
__neg__(self):
266
return
Vec2D(-self[0], -self[1])
267
def
__abs__(self):
268
return
math.hypot(*self)
269
def
rotate(self, angle):
Callers
nothing calls this directly
Calls
1
Vec2D
Class · 0.85
Tested by
no test coverage detected