MCPcopy Create free account
hub / github.com/Apress/python-for-matlab-development / __init__

Method __init__

code/OO/Ball.py:36–39  ·  view source on GitHub ↗
(self, x,y,r)

Source from the content-addressed store, hash-verified

34
35class Ball:
36 def __init__(self, x,y,r):
37 self.x = x
38 self.y = y
39 self.r = r
40 def collides_with(self, other):
41 dx = self.x - other.x
42 dy = self.y - other.y

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected