diff options
author | Archit Sangal | 2020-06-17 16:17:50 +0530 |
---|---|---|
committer | Archit Sangal | 2020-06-17 16:17:50 +0530 |
commit | 37df72d2560c94ca34bb480d65d86ca78f90bbb8 (patch) | |
tree | d68047832340f84c06ec0a669121ab55d3a95f60 /FSF-2020/linear-algebra/linear-transformations | |
parent | d66b55d33c7a26f7e73ada356294bee9b9b6fef9 (diff) | |
download | FSF-mathematics-python-code-archive-37df72d2560c94ca34bb480d65d86ca78f90bbb8.tar.gz FSF-mathematics-python-code-archive-37df72d2560c94ca34bb480d65d86ca78f90bbb8.tar.bz2 FSF-mathematics-python-code-archive-37df72d2560c94ca34bb480d65d86ca78f90bbb8.zip |
Orthonormal basis
Diffstat (limited to 'FSF-2020/linear-algebra/linear-transformations')
-rwxr-xr-x | FSF-2020/linear-algebra/linear-transformations/Orthonormal Basis/file1_orthogonal.py | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/FSF-2020/linear-algebra/linear-transformations/Orthonormal Basis/file1_orthogonal.py b/FSF-2020/linear-algebra/linear-transformations/Orthonormal Basis/file1_orthogonal.py new file mode 100755 index 0000000..b400f93 --- /dev/null +++ b/FSF-2020/linear-algebra/linear-transformations/Orthonormal Basis/file1_orthogonal.py @@ -0,0 +1,34 @@ +from manimlib.imports import *
+
+class Orthogonal(ThreeDScene):
+ def construct(self):
+ axes = ThreeDAxes()
+ self.play(ShowCreation(axes))
+ self.move_camera(phi=30*DEGREES,theta=-45*DEGREES,run_time=3)
+ line1 = Line(start = ORIGIN,end = -3*LEFT)
+ line1.set_color(DARK_BLUE)
+ tip1 = Polygon(-LEFT,-0.8*LEFT-0.2*DOWN,-0.8*LEFT-0.2*UP)
+ tip1.move_to(-3*LEFT)
+ tip1.set_opacity(1)
+ tip1.set_fill(DARK_BLUE)
+ tip1.set_color(DARK_BLUE)
+
+ arrow2 = Line(start = ORIGIN,end = -3*UP)
+ arrow2.set_color(DARK_BLUE)
+ tip2 = Polygon(DOWN,0.8*DOWN-0.2*RIGHT,0.8*DOWN-0.2*LEFT)
+ tip2.move_to(3*DOWN)
+ tip2.set_opacity(1)
+ tip2.set_fill(DARK_BLUE)
+ tip2.set_color(DARK_BLUE)
+ arrow2.set_color(DARK_BLUE)
+
+ arrow3 = Line(start = ORIGIN,end = [0,0,3])
+ arrow3.set_color(DARK_BLUE)
+ tip3 = Polygon([0,0,3],[0,0,2.8]-0.2*RIGHT,[0,0,2.8]-0.2*LEFT)
+ tip3.set_opacity(1)
+ tip3.set_fill(DARK_BLUE)
+ tip3.set_color(DARK_BLUE)
+
+ self.play(ShowCreation(line1), ShowCreation(tip1), ShowCreation(arrow2), ShowCreation(tip2), ShowCreation(arrow3), ShowCreation(tip3))
+
+ self.wait()
\ No newline at end of file |