mirror of
https://github.com/3b1b/manim.git
synced 2025-07-30 05:24:22 +08:00
After running 2to3
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
from constants import *
|
||||
|
||||
@ -334,7 +334,7 @@ class Line(VMobject):
|
||||
def set_start_and_end(self, start, end):
|
||||
start_to_end = self.pointify(end) - self.pointify(start)
|
||||
vect = np.zeros(len(start_to_end))
|
||||
longer_dim = np.argmax(map(abs, start_to_end))
|
||||
longer_dim = np.argmax(list(map(abs, start_to_end)))
|
||||
vect[longer_dim] = start_to_end[longer_dim]
|
||||
self.start, self.end = [
|
||||
arg.get_edge_center(unit * vect)
|
||||
@ -495,7 +495,7 @@ class Arrow(Line):
|
||||
}
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
points = map(self.pointify, args)
|
||||
points = list(map(self.pointify, args))
|
||||
if len(args) == 1:
|
||||
args = (points[0] + UP + LEFT, points[0])
|
||||
Line.__init__(self, *args, **kwargs)
|
||||
|
Reference in New Issue
Block a user