Lines Matching refs:point
161 def transform_point(self, point, trafo=None): argument
162 x = (point.x - self.minx) / self.width
163 y = (point.y - self.miny) / self.height
186 def truncate(self, point): argument
187 if point.x >= self.maxx:
188 point.x = self.maxx
189 if point.y >= self.maxy:
190 point.y = self.maxy
191 if point.x < self.minx:
192 point.x = self.minx
193 if point.y < self.miny:
194 point.y = self.miny
202 point = GVector((self.maxx + self.minx) / 2, (self.maxy + self.miny) / 2, 0)
204 point = self.transform_point(point)
205 x = (point.x - self.minx) / self.width * w
206 y = (point.y - self.miny) / self.height * h