From 15abd14a6509bc0c469b9776ac3c436cb00ad32a Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sun, 3 May 2015 22:23:13 +0200 Subject: Switch to float --- cutter.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cutter.go') 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) } -- cgit v1.2.3