作者:
kaltu (ka)
2017-08-10 05:31:00def ruler_compass_find_G(ﴩ:medians = []for edge in ﴮedges:circle1 = Circle(origin=edge.vertex1,radius=edge.length)circle2 = Circle(origin=edge.vertex2,radius=edge.length)intersection = circle_intersect(circle1, circle2)perpendicular_bisector = Line(*intersection)edge.midpoint = line_intersect(edge,perpendicular_bisector)medians.append(Line(edge.midpoind,ﴮopposite_vertex(edge)))centroid = line_intersect(*medians)return centroid