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

Class Circle

code/OO/circle.py:31–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29# }}}
30import numpy as np
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