From 1564efa2b87af2045e288df4ec5946be1dab6d64 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sat, 2 May 2015 22:07:32 +0200 Subject: Add points --- cutter.go | 4 ++++ marks.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/cutter.go b/cutter.go index d9d07ea..a063143 100644 --- a/cutter.go +++ b/cutter.go @@ -10,6 +10,10 @@ type Point struct { X, Y int } +func add(a, b Point) Point { + return Point{a.X + b.X, a.Y + b.Y} +} + /* A4 Cutting area diff --git a/marks.go b/marks.go index fd75b29..cd90baf 100644 --- a/marks.go +++ b/marks.go @@ -35,7 +35,7 @@ package main +- -+ */ -func (c Cutter) DrawMarks() (string, error) { +func (c Cutter) DrawMarks(offset, size Point) (string, error) { c.Move(Point{600, 3800}) c.Draw(Point{200, 3800}) c.Draw(Point{200, 3400}) -- cgit v1.2.3