Lines Matching refs:constrain
46 def constrain (n, min, max): function
107 rs = constrain (rs, 1, self.rows)
108 re = constrain (re, 1, self.rows)
109 cs = constrain (cs, 1, self.cols)
110 ce = constrain (ce, 1, self.cols)
157 r = constrain (r, 1, self.rows)
158 c = constrain (c, 1, self.cols)
176 r = constrain (r, 1, self.rows)
177 c = constrain (c, 1, self.cols)
188 r = constrain (r, 1, self.rows)
189 c = constrain (c, 1, self.cols)
201 rs = constrain (rs, 1, self.rows)
202 re = constrain (re, 1, self.rows)
203 cs = constrain (cs, 1, self.cols)
204 ce = constrain (ce, 1, self.cols)
223 self.cur_r = constrain (self.cur_r, 1, self.rows)
224 self.cur_c = constrain (self.cur_c, 1, self.cols)