Beispiel #1
0
def bottom_right(rs):
    rs = _B(rs)
    return pt.create(_right(rs), _bottom(rs))
Beispiel #2
0
def size(rs):
    rs = _B(rs)
    return pt.create(_width(rs), _height(rs))
Beispiel #3
0
def top_right(rs):
    rs = _B(rs)
    return pt.create(_right(rs), _top(rs))
Beispiel #4
0
def bottom_left(rs):
    rs = _B(rs)
    return pt.create(_left(rs), _bottom(rs))
Beispiel #5
0
def center(rs):
    rs = _B(rs)
    return pt.create(_left(rs) + _width(rs) / 2,
                     _top(rs) + _height(rs) / 2,
                     dtype=rs.dtype)
Beispiel #6
0
def top_left(rs):
    rs = _B(rs)
    return pt.create(_left(rs), _top(rs))
Beispiel #7
0
def _size(rs):
    return pt.create(_width(rs), _height(rs))
Beispiel #8
0
def _bottom_right(rs):
    return pt.create(_right(rs), _bottom(rs))
Beispiel #9
0
def _bottom_left(rs):
    return pt.create(_left(rs), _bottom(rs))
Beispiel #10
0
def _top_right(rs):
    return pt.create(_right(rs), _top(rs))
Beispiel #11
0
def _top_left(rs):
    return pt.create(_left(rs), _top(rs))