(d1, l, d2)
return Triangle((0, 0), (l, 0), xy)
Return triangle having side with length l on the x-axis.
Return triangle having side with length l on the x-axis.
Return triangle having side with length l on the x - axis .
def _asa(d1, l, d2):
    """Return triangle having side with length l on the x-axis."""
    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 )