def _asa(d1, l, d2):
 xy = Line((0, 0), slope=_slope(d1)).intersection(Line((l, 0), slope=_slope((180 - d2))))[0]
 return Triangle((0, 0), (l, 0), xy)

def _asa ( d1 , l , d2 ) : xy = Line ( ( 0 , 0 ) , slope = _slope ( d1 ) ) . intersection ( Line ( ( l , 0 ) , slope = _slope ( ( 180 - d2 ) ) ) ) [ 0 ] return Triangle ( ( 0 , 0 ) , ( l , 0 ) , xy )
return triangle having side with length l on the x-axis .