Example #1
0
 def test_is_off_screen_left(self):
     obj = Mobject()
     obj.points = np.array([[-FRAME_X_RADIUS * 2, 0, 0]])
     self.assertTrue(obj.is_off_screen())
Example #2
0
 def test_is_off_screen_down(self):
     obj = Mobject()
     obj.points = np.array([[0, -FRAME_Y_RADIUS * 2, 0]])
     self.assertTrue(obj.is_off_screen())
Example #3
0
 def test_is_off_screen_false(self):
     obj = Mobject()
     obj.points = np.zeros((1, 3))
     self.assertFalse(obj.is_off_screen())