mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Add zero point edge case for point_from_proportion
This commit is contained in:
parent
04d77f2bec
commit
054261d86f
1 changed files with 2 additions and 0 deletions
|
@ -805,6 +805,8 @@ class VMobject(Mobject):
|
|||
return self.get_start()
|
||||
elif alpha >= 1:
|
||||
return self.get_end()
|
||||
if self.get_num_points() == 0:
|
||||
return self.get_center()
|
||||
index, residue = self.curve_and_prop_of_partial_point(alpha)
|
||||
return self.get_nth_curve_function(index)(residue)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue