Searched refs:Vec2D (Results 1 – 7 of 7) sorted by relevance
/third_party/python/Lib/test/ |
D | test_turtle.py | 9 Vec2D = turtle.Vec2D variable 145 vec = Vec2D(0.5, 2) 148 self.assertIsInstance(vec, Vec2D) 150 self.assertRaises(TypeError, Vec2D) 151 self.assertRaises(TypeError, Vec2D, 0) 152 self.assertRaises(TypeError, Vec2D, (0, 1)) 153 self.assertRaises(TypeError, Vec2D, vec) 154 self.assertRaises(TypeError, Vec2D, 0, 1, 2) 157 vec = Vec2D(0.567, 1.234) 161 vec1 = Vec2D(0, 1) [all …]
|
/third_party/python/Lib/ |
D | turtle.py | 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), [all …]
|
/third_party/python/Lib/turtledemo/ |
D | planet_and_moon.py | 20 from turtle import Shape, Turtle, mainloop, Vec2D as Vec
|
/third_party/python/Doc/library/ |
D | turtle.rst | 346 If *y* is ``None``, *x* must be a pair of coordinates or a :class:`Vec2D` 649 Return the turtle's current location (x,y) (as a :class:`Vec2D` vector). 2180 .. class:: Vec2D(x, y) 2445 | | gravitational system | :class:`Vec2D` |
|
/third_party/mindspore/patches/ |
D | 0001-generate-schema-headers-manually.patch | 10558 + const mindspore::schema::Vec2D *crops() const { 10559 + return GetPointer<const mindspore::schema::Vec2D *>(VT_CROPS); 10561 + mindspore::schema::Vec2D *mutable_crops() { 10562 + return GetPointer<mindspore::schema::Vec2D *>(VT_CROPS); 10584 + void add_crops(flatbuffers::Offset<mindspore::schema::Vec2D> crops) { 10601 + flatbuffers::Offset<mindspore::schema::Vec2D> crops = 0) { 10611 + flatbuffers::Offset<mindspore::schema::Vec2D> crops = 0) { 10643 + const mindspore::schema::Vec2D *crops() const { 10644 + return GetPointer<const mindspore::schema::Vec2D *>(VT_CROPS); 10646 + mindspore::schema::Vec2D *mutable_crops() { [all …]
|
D | 0003-implement-mindir-module-and-support-nnrt-delegate.patch | 1023 +flatbuffers::Offset<schema::Vec2D> CreateVec2D(flatbuffers::FlatBufferBuilder &fbb, 1025 +flatbuffers::Offset<schema::Vec2D> CreateVec2D(flatbuffers::FlatBufferBuilder &fbb, 1026 + const mindspore::schema::Vec2D *data); 7478 +flatbuffers::Offset<schema::Vec2D> CreateVec2D(flatbuffers::FlatBufferBuilder &fbb, 7485 + flatbuffers::Offset<schema::Vec2D> v2d = schema::CreateVec2D(fbb, fbb.CreateVector(vet2d)); 7488 +flatbuffers::Offset<schema::Vec2D> CreateVec2D(flatbuffers::FlatBufferBuilder &fbb, 7489 + const mindspore::schema::Vec2D *data) { 7496 + flatbuffers::Offset<schema::Vec2D> v2d = schema::CreateVec2D(fbb, fbb.CreateVector(vet2d));
|
/third_party/python/Misc/NEWS.d/ |
D | 3.10.0a1.rst | 1291 Fixed :meth:`turtle.Vec2D.__rmul__` for arguments which are not int or
|