mirror of
https://github.com/3b1b/manim.git
synced 2025-08-01 17:29:06 +08:00
Fixed Camera.is_in_frame
This commit is contained in:
@ -237,9 +237,9 @@ class Camera(object):
|
|||||||
fh = self.get_frame_height()
|
fh = self.get_frame_height()
|
||||||
fw = self.get_frame_width()
|
fw = self.get_frame_width()
|
||||||
return not reduce(op.or_, [
|
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_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,
|
mobject.get_top()[1] < fc[1] - fh,
|
||||||
])
|
])
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user