mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 12:27:44 +00:00
Small fixes to waves.py
This commit is contained in:
parent
1966864d20
commit
a5e965ba46
1 changed files with 20 additions and 1 deletions
21
waves.py
21
waves.py
|
|
@ -1698,9 +1698,28 @@ class CircularlyPolarizedLight(SumOfTwoWaves):
|
|||
CONFIG = {
|
||||
"EMWave_config" : {
|
||||
"phi_vect" : [0, np.pi/2, 0],
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
class AlternateBasis(ShowTipToTailSum):
|
||||
def construct(self):
|
||||
self.force_skipping()
|
||||
self.add_vector()
|
||||
self.add_plane()
|
||||
self.add_vertial_vector()
|
||||
self.add_kets()
|
||||
self.show_vector_sum()
|
||||
self.remove(self.ket_sum)
|
||||
self.reset_amplitude()
|
||||
self.revert_to_original_skipping_status()
|
||||
|
||||
self.rotate_plane()
|
||||
|
||||
def reset_amplitude(self):
|
||||
self.h_oscillating_vector.A_vect = np.array([1, 0, 0])
|
||||
|
||||
def rotate_plane(self):
|
||||
pass
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue