aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cutter.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/cutter.go b/cutter.go
index a063143..aa97552 100644
--- a/cutter.go
+++ b/cutter.go
@@ -10,10 +10,12 @@ type Point struct {
X, Y int
}
-func add(a, b Point) Point {
- return Point{a.X + b.X, a.Y + b.Y}
+func (p Point) Add(u Point) Point {
+ return Point{p.X + u.X, p.Y + u.Y}
}
+type Path []Point
+
/*
A4 Cutting area