Ejemplo n.º 1
0
 def __init__(self, *args, **kwargs):
     MovingCamera.__init__(self, *args, **kwargs)
     self.unit_sun_vect = self.sun_vect / np.linalg.norm(self.sun_vect)
     # rotation_mobject lives in the phi-theta-distance space
     # TODO, use ValueTracker for this instead
     self.rotation_mobject = VectorizedPoint()
     # Moving_center lives in the x-y-z space
     # It representes the center of rotation
     self.moving_center = VectorizedPoint(self.frame_center)
     self.set_position(self.phi, self.theta, self.distance)
Ejemplo n.º 2
0
 def __init__(self, *image_mobjects_from_cameras, **kwargs):
     self.image_mobjects_from_cameras = []
     for imfc in image_mobjects_from_cameras:
         self.add_image_mobject_from_camera(imfc)
     MovingCamera.__init__(self, **kwargs)
Ejemplo n.º 3
0
 def __init__(self, *image_mobjects_from_cameras, **kwargs):
     self.image_mobjects_from_cameras = []
     for imfc in image_mobjects_from_cameras:
         self.add_image_mobject_from_camera(imfc)
     MovingCamera.__init__(self, **kwargs)