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

Method __init__

code/OO/circle.py:33–37  ·  view source on GitHub ↗
(self, x,y,r)

Source from the content-addressed store, hash-verified

31class Circle:
32 MAX_R= 20
33 def __init__(self, x,y,r):
34 self.x = x
35 self.y = y
36 self.R = r
37 self.__perim = 2*r*np.pi;
38 def area(self):
39 return np.pi*self.r**2

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected