Beispiel #1
0
def right_triangle(x0, y0, h):
    corner = MathTree.max(MathTree('-f%fX' % x0), MathTree('-f%fY' % y0))
    corner.shape = True
    shape = corner & MathTree('-X-f%f-Yf%f' % (x0 + h, y0))
    shape.xmin = x0
    shape.xmax = x0 + h
    shape.ymin = y0
    shape.ymax = y0 + h
    return shape
Beispiel #2
0
def right_triangle(x0, y0, h):
    corner = MathTree.max(MathTree('-f%fX' % x0),MathTree('-f%fY' % y0))
    corner.shape = True
    shape = corner & MathTree('-X-f%f-Yf%f' % (x0+h, y0))
    shape.xmin = x0
    shape.xmax = x0 + h
    shape.ymin = y0
    shape.ymax = y0 + h
    return shape
Beispiel #3
0
def right_triangle(x0, y0, h):
    corner = MathTree.max(MathTree('-f%fX' % x0),MathTree('-f%fY' % y0))
    corner.shape = True
    return corner & MathTree('-X-f%f-Yf%f' % (x0+h, y0))
Beispiel #4
0
def right_triangle(x0, y0, h):
    corner = MathTree.max(MathTree('-f%fX' % x0), MathTree('-f%fY' % y0))
    corner.shape = True
    return corner & MathTree('-X-f%f-Yf%f' % (x0 + h, y0))