Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
are_similar poly solution in Clear category for Similar Triangles by flpo
from itertools import starmap
from sympy.geometry import Point, Polygon, are_similar
def poly(points):
return Polygon(*starmap(Point, points))
def similar_triangles(coords_1, coords_2):
return are_similar(poly(coords_1), poly(coords_2))
Jan. 27, 2020
Comments: