cell.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:logsolve 作者: twinone 项目源码 文件源码
def cell_rect(self, x, y, areaf=1):
        padx = self.cellw * areaf
        pady = self.cellh * areaf
        fromx = round(x * self.cellw + padx)
        fromy = round(y * self.cellh + pady)
        tox = round(fromx + self.cellw - 2*padx)
        toy = round(fromy + self.cellh - 2*pady)
        r = np.array([fromy, fromy, toy, toy])
        c = np.array([fromx, tox, tox, fromx])
        return polygon(r, c)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号