A community-maintained Python framework for creating mathematical animations.
Merge branch 'master' into lighthouse2
Ben Hambrecht1e88bf3946bf
diff --cc topics/light.pyindex 6c4860a25,562664919..db0e9ff3c--- a/topics/light.py+++ b/topics/light.py@@@ -169,13 -177,15 +177,14 @@@ class LightSource(VMobject)for point in self.screen.get_anchors():projected_screen_points.append(self.spotlight.project(point))- # print "projected", self.screen.get_anchors(), "onto", projected_screen_points--projected_source = project_along_vector(self.source_point,self.spotlight.projection_direction())- projected_point_cloud_3d = np.append(projected_screen_points,- np.reshape(projected_source,(1,3)),axis = 0)+ projected_point_cloud_3d = np.append(+ projected_screen_points,+ np.reshape(projected_source,(1,3)),+ axis = 0+ )rotation_matrix = z_to_vector(self.spotlight.projection_direction())back_rotation_matrix = rotation_matrix.T # i. e. its inverse