def generate_points(self): complex_power = 0.9 radius = self.initial_width/2 circle = Circle(radius = radius) circle.scale(1.0/radius) circle.apply_complex_function(lambda z : z**complex_power) circle.scale(radius) boundary_point_as_complex = radius*complex(-1)**complex_power boundary_points = [ [ boundary_point_as_complex.real, unit*boundary_point_as_complex.imag, 0 ] for unit in -1, 1 ] tip = radius*(1.5*LEFT+UP) self.little_line = Line(boundary_points[0], tip) self.circle = circle self.add( circle, self.little_line, Line(boundary_points[1], tip) ) self.highlight("white") self.rotate(np.pi/2) self.stretch_to_fit_height(self.initial_height)
def generate_points(self): complex_power = 0.9 radius = self.initial_width / 2 circle = Circle(radius=radius) circle.scale(1.0 / radius) circle.apply_complex_function(lambda z: z**complex_power) circle.scale(radius) boundary_point_as_complex = radius * complex(-1)**complex_power boundary_points = [[ boundary_point_as_complex.real, unit * boundary_point_as_complex.imag, 0 ] for unit in -1, 1] tip = radius * (1.5 * LEFT + UP) self.little_line = Line(boundary_points[0], tip) self.circle = circle self.add(circle, self.little_line, Line(boundary_points[1], tip)) self.highlight("white") self.rotate(np.pi / 2) self.stretch_to_fit_height(self.initial_height)