MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / copy

Method copy

src/ext/makerbot_driver/Gcode/Point.py:32–36  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

30 setattr(self, axis, codes[axis])
31
32 def copy(self):
33 copy_point = Point()
34 for axis in ['X', 'Y', 'Z', 'A', 'B']:
35 setattr(copy_point, axis, getattr(self, axis))
36 return copy_point

Callers 5

loadMethod · 0.45
__init__Method · 0.45
wgetMethod · 0.45
set_positionMethod · 0.45
linear_interpolationMethod · 0.45

Calls 1

PointClass · 0.85

Tested by

no test coverage detected