mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
Remove commented out old implementation of put_start_and_end_on
This commit is contained in:
parent
2346175152
commit
0212fa27e7
1 changed files with 5 additions and 4 deletions
|
@ -403,10 +403,11 @@ class Line(VMobject):
|
|||
start, end = self.get_start_and_end()
|
||||
return angle_of_vector(end - start)
|
||||
|
||||
# def put_start_and_end_on(self, new_start, new_end):
|
||||
# self.set_start_and_end(new_start, new_end)
|
||||
# self.buff = 0
|
||||
# self.generate_points()
|
||||
def set_angle(self, angle):
|
||||
self.rotate(
|
||||
angle - self.get_angle(),
|
||||
about_point=self.get_start(),
|
||||
)
|
||||
|
||||
def put_start_and_end_on(self, new_start, new_end):
|
||||
self.start = new_start
|
||||
|
|
Loading…
Add table
Reference in a new issue