Code
Hub
Trending
Following
Digest
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/csev/py4e
/ getCenter
Method
getCenter
code/graphics/graphics.py:577–580 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
575
def
getP2(self):
return
self.p2.clone()
576
577
def
getCenter(self):
578
p1 = self.p1
579
p2 = self.p2
580
return
Point((p1.x+p2.x)/2.0, (p1.y+p2.y)/2.0)
581
582
class
Rectangle(_BBox):
583
Callers
2
clone
Method · 0.80
__str__
Method · 0.80
Calls
1
Point
Class · 0.85
Tested by
no test coverage detected