MCPcopy Index your code
hub / github.com/256dpi/gcode / offset

Function offset

cmd/gcode/main.go:42–51  ·  view source on GitHub ↗
(c *command)

Source from the content-addressed store, hash-verified

40}
41
42func offset(c *command) {
43 // load g-code file
44 file := loadFile(c.aInput)
45
46 // offset all coordinates
47 gcode.OffsetXYZ(file, c.aX, c.aY, c.aZ)
48
49 // write g-code file
50 writeFile(c.aOutput, file)
51}
52
53func svg(c *command) {
54 // load g-code file

Callers 1

mainFunction · 0.85

Calls 3

OffsetXYZFunction · 0.92
loadFileFunction · 0.85
writeFileFunction · 0.85

Tested by

no test coverage detected