mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Add special methods for setting angles
This commit is contained in:
parent
2317a7d982
commit
429d63eebf
1 changed files with 9 additions and 0 deletions
|
@ -84,6 +84,15 @@ class CameraFrame(Mobject):
|
|||
self.euler_angles[:] = theta, phi, gamma
|
||||
return self
|
||||
|
||||
def set_theta(self, theta):
|
||||
self.euler_angles[0] = theta
|
||||
|
||||
def set_phi(self, phi):
|
||||
self.euler_angles[1] = phi
|
||||
|
||||
def set_gamma(self, gamma):
|
||||
self.euler_angles[2] = gamma
|
||||
|
||||
def increment_theta(self, dtheta):
|
||||
self.euler_angles[0] += dtheta
|
||||
return self
|
||||
|
|
Loading…
Add table
Reference in a new issue