mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Fixed Camera.is_in_frame
This commit is contained in:
parent
3bfc515411
commit
d72483e909
1 changed files with 2 additions and 2 deletions
|
@ -237,9 +237,9 @@ class Camera(object):
|
|||
fh = self.get_frame_height()
|
||||
fw = self.get_frame_width()
|
||||
return not reduce(op.or_, [
|
||||
mobject.get_left()[0] < fc[0] - fw,
|
||||
mobject.get_right()[0] < fc[0] - fw,
|
||||
mobject.get_bottom()[1] > fc[1] + fh,
|
||||
mobject.get_right()[0] > fc[0] + fw,
|
||||
mobject.get_left()[0] > fc[0] + fw,
|
||||
mobject.get_top()[1] < fc[1] - fh,
|
||||
])
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue