A community-maintained Python framework for creating mathematical animations.
document some of the constants that are exposed to the end user
leotrsb27fd1ffae05
diff --git a/manim/constants.py b/manim/constants.pyindex 81674b220..074277c47 100644--- a/manim/constants.py+++ b/manim/constants.py@@ -1,5 +1,10 @@+"""+Constant definitions.+"""+import numpy as np+# MessagesNOT_SETTING_FONT_MSG = """You haven't set font.@@ -32,12 +37,19 @@ BOLD = "BOLD"# Geometry: directionsORIGIN = np.array((0.0, 0.0, 0.0))+"""The center of the coordinate system."""UP = np.array((0.0, 1.0, 0.0))+"""One unit step in the positive Y direction."""DOWN = np.array((0.0, -1.0, 0.0))+"""One unit step in the negative Y direction."""RIGHT = np.array((1.0, 0.0, 0.0))+"""One unit step in the positive X direction."""LEFT = np.array((-1.0, 0.0, 0.0))+"""One unit step in the nevative X direction."""IN = np.array((0.0, 0.0, -1.0))+"""One unit step in the nevative Z direction."""OUT = np.array((0.0, 0.0, 1.0))+"""One unit step in the positive Z direction."""# Geometry: axesX_AXIS = np.array((1.0, 0.0, 0.0))@@ -46,9 +58,13 @@ Z_AXIS = np.array((0.0, 0.0, 1.0))# Geometry: useful abbreviations for diagonalsUL = UP + LEFT+"""One step up plus one step left."""UR = UP + RIGHT+"""One step up plus one step right."""DL = DOWN + LEFT+"""One step down plus one step left."""DR = DOWN + RIGHT+"""One step down plus one step right."""# GeometrySTART_X = 30@@ -73,8 +89,11 @@ DEFAULT_STROKE_WIDTH = 4# Mathematical constantsPI = np.pi+"""The ratio of the circumference of a circle to its diameter."""TAU = 2 * PI+"""The ratio of the circumference of a circle to its radius."""DEGREES = TAU / 360+"""The exchange rate between radians and degrees."""# ffmpeg stuffFFMPEG_BIN = "ffmpeg"