Example #1
0
def test_downslope2():
    l=Line(Vertex(7,0),Vertex(0,5))
    vs=list(l.slow_all_vertices())
    #visualize_diff(vs,vs,l,l)
    assert(Vertex(7,0) in vs)
    assert(Vertex(0,5) in vs)
Example #2
0
def test_downslope():
    l=Line(Vertex(0,5),Vertex(7,0))
    vs=list(l.slow_all_vertices())
    #visualize_diff([(l,(255,0,0))])
    assert(Vertex(0,5) in vs)
    assert(Vertex(7,0) in vs)