コード例 #1
0
 def __init__(self, type, pos, radius, rotation, density):
     Circle.__init__(self, pos, radius)
     self.id = None  # will be set later
     self.type = type
     self.pos = self.center
     self.rotation = rotation
     self.density = density
     self.mass = density * np.pi * np.power(radius, 3) * 4 / 3
     self.poleOrbit = self.orbit(0, 0)
コード例 #2
0
ファイル: fixed_size_dot.py プロジェクト: hengfun/manim
 def __init__(self, point=ORIGIN, **kwargs):
     self.fake_scale = False
     Circle.__init__(self, **kwargs)
     self.shift(point)
     self.init_colors()
     self.fake_scale = True