Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

        def More_Accurate_Line((x1,y1), (x2,y2)):
    def A(i):
        return ( 2 * i ) + 1

    return [ (x / 2, y / 2) for (x,y) in
            bresenham.Line((A(x1), A(y1)), (A(x2), A(y2))) ]
        


src/2/0/20kly-HEAD/code/net_model.py   20kly(Download)
        may_intersect = False
        checked = set()
        path = extra.More_Accurate_Line(pos1, pos2)
 
        if consider_pos2_intersect:
    def __Add_Pipe(self, pipe):
        """Low-level method to add a pipe to the network."""
        self.pipe_list.append(pipe)
        path = extra.More_Accurate_Line(pipe.n1.pos, pipe.n2.pos)