mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Adds a small todo
This commit is contained in:
parent
14cac5ce71
commit
13bcd723cf
1 changed files with 2 additions and 2 deletions
|
@ -638,6 +638,7 @@ class Mobject(Container):
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def put_start_and_end_on(self, start, end):
|
def put_start_and_end_on(self, start, end):
|
||||||
|
# TODO, this doesn't currently work in 3d
|
||||||
curr_start, curr_end = self.get_start_and_end()
|
curr_start, curr_end = self.get_start_and_end()
|
||||||
curr_vect = curr_end - curr_start
|
curr_vect = curr_end - curr_start
|
||||||
if np.all(curr_vect == 0):
|
if np.all(curr_vect == 0):
|
||||||
|
@ -648,8 +649,7 @@ class Mobject(Container):
|
||||||
about_point=curr_start,
|
about_point=curr_start,
|
||||||
)
|
)
|
||||||
self.rotate(
|
self.rotate(
|
||||||
angle_of_vector(target_vect) -
|
angle_of_vector(target_vect) - angle_of_vector(curr_vect),
|
||||||
angle_of_vector(curr_vect),
|
|
||||||
about_point=curr_start
|
about_point=curr_start
|
||||||
)
|
)
|
||||||
self.shift(start - curr_start)
|
self.shift(start - curr_start)
|
||||||
|
|
Loading…
Add table
Reference in a new issue