From 661814deea7fcfeed0f370a67668d2191fb63edc Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Sat, 3 Feb 2024 18:48:07 -0600 Subject: [PATCH] Add all orientation options into CameraFrame.reorient --- manimlib/camera/camera_frame.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/manimlib/camera/camera_frame.py b/manimlib/camera/camera_frame.py index e8077d7b..f3dd6614 100644 --- a/manimlib/camera/camera_frame.py +++ b/manimlib/camera/camera_frame.py @@ -135,12 +135,18 @@ class CameraFrame(Mobject): theta_degrees: float | None = None, phi_degrees: float | None = None, gamma_degrees: float | None = None, + center: Vect3 | tuple[float, float, float] | None = None, + height: float | None = None ): """ Shortcut for set_euler_angles, defaulting to taking in angles in degrees """ self.set_euler_angles(theta_degrees, phi_degrees, gamma_degrees, units=DEGREES) + if center is not None: + self.move_to(np.array(center)) + if height is not None: + self.set_height(height) return self def set_theta(self, theta: float):