aboutsummaryrefslogtreecommitdiff
path: root/cutter.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-05-03 22:23:13 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-05-03 22:23:13 +0200
commit15abd14a6509bc0c469b9776ac3c436cb00ad32a (patch)
tree9583a483aee62ffdb952137888f106771810f364 /cutter.go
parent05b47262e327607d5da1b3e8ff6336d0e5eaa77c (diff)
Switch to float
Diffstat (limited to 'cutter.go')
-rw-r--r--cutter.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cutter.go b/cutter.go
index 496fa3a..3b8d2ef 100644
--- a/cutter.go
+++ b/cutter.go
@@ -23,7 +23,7 @@ func (p Point) AddY(u float64) Point {
}
type Polar struct {
- R, Theta int
+ R, Theta float64
}
type Path []Point
@@ -391,7 +391,7 @@ func (c Cutter) Curve(a int, ph Path) {
c.Flush()
}
-func (c Cutter) Ellipse(a int, p Point, start, end Polar, theta int) {
+func (c Cutter) Ellipse(a int, p Point, start, end Polar, theta float64) {
c.Send(")", a, ",", p, ",", start.R, ",", end.R, ",",
start.Theta, ",", end.Theta, ",", theta)
}