File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -190,6 +190,8 @@ def translate(self, translation: Vector3) -> Camera:
190
190
view = self .view .translate (translation ),
191
191
projection = copy .deepcopy (self .projection ),
192
192
near_clipping_distance = self .near_clipping_distance ,
193
+ image_start = self .image_start ,
194
+ image_end = self .image_end ,
193
195
)
194
196
195
197
def rotate_around_target (self , rotation : Rotation ) -> Camera :
@@ -204,6 +206,8 @@ def rotate_around_target(self, rotation: Rotation) -> Camera:
204
206
view = self .view .rotate_around_target (rotation ),
205
207
projection = copy .deepcopy (self .projection ),
206
208
near_clipping_distance = self .near_clipping_distance ,
209
+ image_start = self .image_start ,
210
+ image_end = self .image_end ,
207
211
)
208
212
209
213
Original file line number Diff line number Diff line change @@ -80,6 +80,9 @@ def test_translate(self) -> None:
80
80
self .assertEqual (test .view , view )
81
81
self .assertEqual (test .projection , ref .projection )
82
82
self .assertIsNot (test .projection , ref .projection )
83
+ self .assertEqual (test .near_clipping_distance , ref .near_clipping_distance )
84
+ self .assertEqual (test .image_start , ref .image_start )
85
+ self .assertEqual (test .image_end , ref .image_end )
83
86
84
87
def test_rotate_around_target (self ) -> None :
85
88
rotation = brayns .euler (1 , 2 , 3 , degrees = True )
@@ -89,3 +92,6 @@ def test_rotate_around_target(self) -> None:
89
92
self .assertEqual (test .view , view )
90
93
self .assertEqual (test .projection , ref .projection )
91
94
self .assertIsNot (test .projection , ref .projection )
95
+ self .assertEqual (test .near_clipping_distance , ref .near_clipping_distance )
96
+ self .assertEqual (test .image_start , ref .image_start )
97
+ self .assertEqual (test .image_end , ref .image_end )
You can’t perform that action at this time.
0 commit comments