From 7dc5630fd1f72b67573b28e39e685032e820bcf2 Mon Sep 17 00:00:00 2001
From: fheinrich <fheinrich@techfak.uni-bielefeld.de>
Date: Thu, 7 Dec 2023 16:15:15 +0100
Subject: [PATCH] Removed unnecessary functions

---
 overcooked_simulator/pygame_gui/pygame_gui.py | 23 +------------------
 1 file changed, 1 insertion(+), 22 deletions(-)

diff --git a/overcooked_simulator/pygame_gui/pygame_gui.py b/overcooked_simulator/pygame_gui/pygame_gui.py
index bb157014..3060f3ff 100644
--- a/overcooked_simulator/pygame_gui/pygame_gui.py
+++ b/overcooked_simulator/pygame_gui/pygame_gui.py
@@ -35,25 +35,6 @@ BOARD_COLOR = (239, 193, 151)
 USE_COOK_SPRITE = False
 
 
-def angle_between_vectors_old(v1, v2):
-    if np.linalg.norm(v1) != 0:
-        v1 = v1 / np.linalg.norm(v1)
-    if np.linalg.norm(v2) != 0:
-        v2 = v2 / np.linalg.norm(v2)
-    return np.arccos(np.clip(np.dot(v1, v2), -1.0, 1.0))
-
-
-def angle_between_vectors(v1, v2):
-    from_vec = v1
-    to_vec = v2
-    norm = np.linalg.norm
-    angle = 2 * np.arctan2(
-        norm(from_vec / norm(from_vec) - to_vec / norm(to_vec)),
-        norm(from_vec / norm(from_vec) + to_vec / norm(to_vec)),
-    )
-    return angle
-
-
 class PlayerKeySet:
     """Set of keyboard keys for controlling a player.
     First four keys are for movement. Order: Down, Up, Left, Right.
@@ -229,9 +210,7 @@ class PyGameGUI:
             self.screen.blit(image, rect)
 
         if isinstance(item, Plate):
-            image = pygame.image.load(
-                self.images_path / "plate.png"
-            ).convert_alpha()
+            image = pygame.image.load(self.images_path / "plate.png").convert_alpha()
             rect = image.get_rect()
             rect.center = pos
             self.screen.blit(image, rect)
-- 
GitLab