mirror of
https://github.com/3b1b/manim.git
synced 2025-09-19 04:41:56 +00:00
Replace np.apply_along_axis with arr.min
This commit is contained in:
parent
b7f9257b3c
commit
0176bda584
1 changed files with 2 additions and 2 deletions
|
@ -759,8 +759,8 @@ class Mobject(Container):
|
|||
return np.zeros((3, self.dim))
|
||||
else:
|
||||
# Lower left and upper right corners
|
||||
dl = np.apply_along_axis(np.min, 0, all_points)
|
||||
ur = np.apply_along_axis(np.max, 0, all_points)
|
||||
dl = all_points.min(0)
|
||||
ur = all_points.max(0)
|
||||
return np.array([dl, (dl + ur) / 2, ur])
|
||||
|
||||
# Pseudonyms for more general get_bounding_box_point method
|
||||
|
|
Loading…
Add table
Reference in a new issue