Lines Matching refs:Vec2D
256 class Vec2D(tuple): class
273 return Vec2D(self[0]+other[0], self[1]+other[1])
275 if isinstance(other, Vec2D):
277 return Vec2D(self[0]*other, self[1]*other)
280 return Vec2D(self[0]*other, self[1]*other)
282 return Vec2D(self[0]-other[0], self[1]-other[1])
284 return Vec2D(-self[0], -self[1])
290 perp = Vec2D(-self[1], self[0])
293 return Vec2D(self[0]*c+perp[0]*s, self[1]*c+perp[1]*s)
1431 "standard": Vec2D(1.0, 0.0),
1432 "world" : Vec2D(1.0, 0.0),
1433 "logo" : Vec2D(0.0, 1.0) }
1453 self._position = Vec2D(0.0, 0.0)
1690 self._goto(Vec2D(*x))
1692 self._goto(Vec2D(x, y))
1724 self._goto(Vec2D(x, self._position[1]))
1742 self._goto(Vec2D(self._position[0], y))
1767 pos = Vec2D(x, y)
1768 if isinstance(x, Vec2D):
1771 pos = Vec2D(*x)
1799 pos = Vec2D(x, y)
1800 if isinstance(x, Vec2D):
1803 pos = Vec2D(*x)
2792 e = Vec2D(e0, e1 * screen.yscale / screen.xscale)