aboutsummaryrefslogtreecommitdiff
path: root/cutter.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-05-02 22:12:20 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-05-02 22:12:20 +0200
commit32514def6432733208a39905ad2ba28fbaddfbaa (patch)
treeebd9cb2f9903e5e724c9b59a5f4ae5c3ed3589ab /cutter.go
parent1564efa2b87af2045e288df4ec5946be1dab6d64 (diff)
Make Add a method, add Path type
Diffstat (limited to 'cutter.go')
-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