From 3200205b1744a5e55d625fff4bcb54873e91d23b Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Mon, 9 Apr 2018 16:17:02 -0700 Subject: [PATCH] Added abbreviations for UP+RIGHT, UP+LEFT, DOWN+RIGHT, DOWN+LEFT --- constants.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/constants.py b/constants.py index af068348..8950d90b 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 * UP BOTTOM = FRAME_Y_RADIUS * DOWN LEFT_SIDE = FRAME_X_RADIUS * LEFT