mirror of
https://github.com/3b1b/manim.git
synced 2025-09-19 04:41:56 +00:00
Make sure Point has points of type float
This commit is contained in:
parent
54598f92c7
commit
a62a4ae02b
1 changed files with 2 additions and 3 deletions
|
@ -1088,8 +1088,7 @@ class Mobject(Container):
|
|||
self.set_submobjects(new_submobs)
|
||||
return self
|
||||
|
||||
def interpolate(self, mobject1, mobject2,
|
||||
alpha, path_func=straight_path):
|
||||
def interpolate(self, mobject1, mobject2, alpha, path_func=straight_path):
|
||||
"""
|
||||
Turns self into an interpolation between mobject1
|
||||
and mobject2.
|
||||
|
@ -1230,4 +1229,4 @@ class Point(Mobject):
|
|||
return self.get_location()
|
||||
|
||||
def set_location(self, new_loc):
|
||||
self.points = np.array(new_loc, ndmin=2)
|
||||
self.points = np.array(new_loc, ndmin=2, dtype=float)
|
||||
|
|
Loading…
Add table
Reference in a new issue