66import numpy as np
77from scipy .spatial .transform import Rotation
88
9- from manimlib .constants import DEGREES , RADIANS
9+ from manimlib .constants import DEG , RADIANS
1010from manimlib .constants import FRAME_SHAPE
1111from manimlib .constants import DOWN , LEFT , ORIGIN , OUT , RIGHT , UP
1212from manimlib .constants import PI
@@ -26,7 +26,7 @@ def __init__(
2626 frame_shape : tuple [float , float ] = FRAME_SHAPE ,
2727 center_point : Vect3 = ORIGIN ,
2828 # Field of view in the y direction
29- fovy : float = 45 * DEGREES ,
29+ fovy : float = 45 * DEG ,
3030 euler_axes : str = "zxz" ,
3131 # This keeps it ordered first in a scene
3232 z_index = - 1 ,
@@ -181,7 +181,7 @@ def reorient(
181181 Shortcut for set_euler_angles, defaulting to taking
182182 in angles in degrees
183183 """
184- self .set_euler_angles (theta_degrees , phi_degrees , gamma_degrees , units = DEGREES )
184+ self .set_euler_angles (theta_degrees , phi_degrees , gamma_degrees , units = DEG )
185185 if center is not None :
186186 self .move_to (np .array (center ))
187187 if height is not None :
@@ -209,7 +209,7 @@ def increment_gamma(self, dgamma: float, units=RADIANS):
209209 self .increment_euler_angles (dgamma = dgamma , units = units )
210210 return self
211211
212- def add_ambient_rotation (self , angular_speed = 1 * DEGREES ):
212+ def add_ambient_rotation (self , angular_speed = 1 * DEG ):
213213 self .add_updater (lambda m , dt : m .increment_theta (angular_speed * dt ))
214214 return self
215215
0 commit comments