From ba381d15a574ccaaa5008230008dad24c79ee3f1 Mon Sep 17 00:00:00 2001 From: Dan Birman Date: Fri, 3 Nov 2023 08:40:48 -0700 Subject: [PATCH] chore: removing redundant set_rotation_X functions --- API/oursin/camera.py | 70 -------------------------------------------- 1 file changed, 70 deletions(-) diff --git a/API/oursin/camera.py b/API/oursin/camera.py index ae37d776..bac7ecdf 100644 --- a/API/oursin/camera.py +++ b/API/oursin/camera.py @@ -175,76 +175,6 @@ def set_rotation(self, rotation): self.rotation = rotation client.sio.emit('SetCameraRotation', {self.id: rotation}) - def set_rotation_axial(self, above=True): - """Set the camera to the standard axial view. Does not change the window, only the rotation. - Parameters - ---------- - above : boolean - default true, the above view - - Examples - -------- - >>> c1.set_rotation_axial(True) - """ - if self.in_unity == False: - raise Exception("Camera is not created. Please create camera before calling method.") - - if above: - rotation = [0,0,0] - else: - rotation = [0,-180,0] - rotation = utils.sanitize_vector3(rotation) - self.rotation = rotation - client.sio.emit('SetCameraRotation', {self.id: rotation}) - - - def set_rotation_coronal(self, back=True): - """Set the camera to the standard coronal view. Does not change the window, only the rotation. - Parameters - ---------- - bool : boolean - default true, the back view - - Examples - -------- - >>> c1.set_rotation_coronal(True) - """ - if self.in_unity == False: - raise Exception("Camera is not created. Please create camera before calling method.") - - if back: - rotation = [90,0,0] - else: - rotation = [90,-180,0] - rotation = utils.sanitize_vector3(rotation) - self.rotation = rotation - client.sio.emit('SetCameraRotation', {self.id: rotation}) - - - def set_rotation_sagittal(self, left=True): - """Set the camera to the standard sagittal view. Does not change the window, only the rotation. - Parameters - ---------- - bool : boolean - default true, the left view - - Examples - -------- - >>> c1.set_rotation_sagittal(True) - """ - if self.in_unity == False: - raise Exception("Camera is not created. Please create camera before calling method.") - - if left: - rotation = [90,-90,0] - else: - rotation = [90,90,0] - rotation = utils.sanitize_vector3(rotation) - self.rotation = rotation - client.sio.emit('SetCameraRotation', {self.id: rotation}) - - - def set_zoom(self,zoom): """Set the camera zoom.