A community-maintained Python framework for creating mathematical animations.
Added abbreviations for UP+RIGHT, UP+LEFT, DOWN+RIGHT, DOWN+LEFT
Grant Sanderson3200205b1744
diff --git a/constants.py b/constants.pyindex af068348f..8950d90b2 100644--- a/constants.py+++ b/constants.py@@ -67,6 +67,12 @@ X_AXIS = np.array((1., 0., 0.))Y_AXIS = np.array((0., 1., 0.))Z_AXIS = np.array((0., 0., 1.))+# Useful abbreviations for diagonals+UL = UP + LEFT+UR = UP + RIGHT+DL = DOWN + LEFT+DR = DOWN + RIGHT+TOP = FRAME_Y_RADIUS * UPBOTTOM = FRAME_Y_RADIUS * DOWNLEFT_SIDE = FRAME_X_RADIUS * LEFT