Lines Matching refs:Vec2D
236 class Vec2D(tuple): class
253 return Vec2D(self[0]+other[0], self[1]+other[1])
255 if isinstance(other, Vec2D):
257 return Vec2D(self[0]*other, self[1]*other)
260 return Vec2D(self[0]*other, self[1]*other)
263 return Vec2D(self[0]-other[0], self[1]-other[1])
265 return Vec2D(-self[0], -self[1])
271 perp = Vec2D(-self[1], self[0])
274 return Vec2D(self[0]*c+perp[0]*s, self[1]*c+perp[1]*s)
1516 "standard": Vec2D(1.0, 0.0),
1517 "world" : Vec2D(1.0, 0.0),
1518 "logo" : Vec2D(0.0, 1.0) }
1538 self._position = Vec2D(0.0, 0.0)
1775 self._goto(Vec2D(*x))
1777 self._goto(Vec2D(x, y))
1809 self._goto(Vec2D(x, self._position[1]))
1827 self._goto(Vec2D(self._position[0], y))
1852 pos = Vec2D(x, y)
1853 if isinstance(x, Vec2D):
1856 pos = Vec2D(*x)
1884 pos = Vec2D(x, y)
1885 if isinstance(x, Vec2D):
1888 pos = Vec2D(*x)
2961 e = Vec2D(e0, e1 * screen.yscale / screen.xscale)