Searched refs:Vec2D (Results 1 – 14 of 14) 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/mindspore/mindspore/lite/mindir/src/ |
D | utils.cc | 48 flatbuffers::Offset<schema::Vec2D> CreateVec2D(flatbuffers::FlatBufferBuilder &fbb, in CreateVec2D() 55 flatbuffers::Offset<schema::Vec2D> v2d = schema::CreateVec2D(fbb, fbb.CreateVector(vet2d)); in CreateVec2D() 58 flatbuffers::Offset<schema::Vec2D> CreateVec2D(flatbuffers::FlatBufferBuilder &fbb, in CreateVec2D() 59 const mindspore::schema::Vec2D *data) { in CreateVec2D() 66 flatbuffers::Offset<schema::Vec2D> v2d = schema::CreateVec2D(fbb, fbb.CreateVector(vet2d)); in CreateVec2D()
|
/third_party/mindspore/mindspore/lite/mindir/inner_headers/ |
D | utils.h | 12 flatbuffers::Offset<schema::Vec2D> CreateVec2D(flatbuffers::FlatBufferBuilder &fbb, 14 flatbuffers::Offset<schema::Vec2D> CreateVec2D(flatbuffers::FlatBufferBuilder &fbb, 15 const mindspore::schema::Vec2D *data);
|
/third_party/mindspore/mindspore/lite/schema/inner/ |
D | ops_types_generated.h | 16 struct Vec2D; 651 typedef Vec2D TableType; 655 struct Vec2D FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { 679 …static flatbuffers::Offset<Vec2D> Pack(flatbuffers::FlatBufferBuilder &_fbb, const Vec2DT* _o, con… 683 typedef Vec2D Table; 687 fbb_.AddOffset(Vec2D::VT_DATA, data); in add_data() 693 flatbuffers::Offset<Vec2D> Finish() { in Finish() 695 auto o = flatbuffers::Offset<Vec2D>(end); in Finish() 700 inline flatbuffers::Offset<Vec2D> CreateVec2D( 708 inline flatbuffers::Offset<Vec2D> CreateVec2DDirect( [all …]
|
D | ops_generated.h | 5982 const mindspore::schema::Vec2D *crops() const { 5983 return GetPointer<const mindspore::schema::Vec2D *>(VT_CROPS); 5985 mindspore::schema::Vec2D *mutable_crops() { 5986 return GetPointer<mindspore::schema::Vec2D *>(VT_CROPS); 6008 void add_crops(flatbuffers::Offset<mindspore::schema::Vec2D> crops) { 6025 flatbuffers::Offset<mindspore::schema::Vec2D> crops = 0) { 6035 flatbuffers::Offset<mindspore::schema::Vec2D> crops = 0) { 6067 const mindspore::schema::Vec2D *crops() const { 6068 return GetPointer<const mindspore::schema::Vec2D *>(VT_CROPS); 6070 mindspore::schema::Vec2D *mutable_crops() { [all …]
|
/third_party/mindspore/mindspore/lite/schema/ |
D | ops_types_generated.h | 15 struct Vec2D; 624 struct Vec2D FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { 642 typedef Vec2D Table; 646 fbb_.AddOffset(Vec2D::VT_DATA, data); in add_data() 652 flatbuffers::Offset<Vec2D> Finish() { in Finish() 654 auto o = flatbuffers::Offset<Vec2D>(end); in Finish() 659 inline flatbuffers::Offset<Vec2D> CreateVec2D( 667 inline flatbuffers::Offset<Vec2D> CreateVec2DDirect(
|
D | ops.fbs | 337 crops: Vec2D; 342 crops: Vec2D; 765 paddings: Vec2D; 925 paddings: Vec2D; 930 paddings: Vec2D;
|
D | ops_types.fbs | 142 table Vec2D {
|
D | ops_generated.h | 3267 const mindspore::schema::Vec2D *crops() const { 3268 return GetPointer<const mindspore::schema::Vec2D *>(VT_CROPS); 3287 void add_crops(flatbuffers::Offset<mindspore::schema::Vec2D> crops) { 3304 flatbuffers::Offset<mindspore::schema::Vec2D> crops = 0) { 3314 flatbuffers::Offset<mindspore::schema::Vec2D> crops = 0) { 3331 const mindspore::schema::Vec2D *crops() const { 3332 return GetPointer<const mindspore::schema::Vec2D *>(VT_CROPS); 3351 void add_crops(flatbuffers::Offset<mindspore::schema::Vec2D> crops) { 3368 flatbuffers::Offset<mindspore::schema::Vec2D> crops = 0) { 3378 flatbuffers::Offset<mindspore::schema::Vec2D> crops = 0) { [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/mindspore/mindspore/lite/src/ops/ |
D | ops_def.cc | 337 OP_ATTR_VEC2D(crops, Vec2D); 342 OP_ATTR_VEC2D(crops, Vec2D); 765 OP_ATTR_VEC2D(paddings, Vec2D); 925 OP_ATTR_VEC2D(paddings, Vec2D); 930 OP_ATTR_VEC2D(paddings, Vec2D);
|
/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/python/Misc/NEWS.d/ |
D | 3.10.0a1.rst | 1291 Fixed :meth:`turtle.Vec2D.__rmul__` for arguments which are not int or
|