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