lib/svgcode/gcode/command.rb in svgcode-0.4.0 vs lib/svgcode/gcode/command.rb in svgcode-0.6.0
- old
+ new
@@ -121,9 +121,18 @@
Command.new(:x, x),
Command.new(:y, y)
])
end
+ # X and Y are the endpoint, and I is the X offset of the centrepoint
+ def self.arc(x, y, i)
+ Command.new(:g, 2, [
+ Command.new(:x, x),
+ Command.new(:y, y),
+ Command.new(:i, i)
+ ])
+ end
+
def self.clear(clearance)
Command.new(:g, 0, [
Command.new(:z, clearance)
])
end