def METHOD_NAME(self, p0, p1):
    """
    This draws a straight wire with layer_minwidth
    """
    layer_width = self.get_layer_width(p0.z)
    layer_name = self.get_layer_name(p0.z)
    # always route left to right or bottom to top
    if p0.z != p1.z:
        self.error("Adding a via as a wire!")
    elif p0.x < p1.x or p0.y < p1.y:
        start = p0
        end = p1
    elif p0.x > p1.x or p0.y > p1.y:
        start = p1
        end = p0
    else:
        debug.error("Neither horizontal or vertical wire.")
    # now determine the route geometry and offset
    if start.x != end.x: # horizontal
        offset = start + vector3d(0,-0.5*layer_width,0)
        height = layer_width
        width = end.x - start.x
    elif start.y != end.y: # vertical
        offset = start + vector3d(-0.5*layer_width,0,0)
        height = end.y - start.y
        width = layer_width
    self.obj.add_rect(layer=layer_name,
                      offset=vector(offset.x,offset.y),
                      width=width,
                      height=height)