From 9e024dc337a8ef81387f10ad691d5866ed071b6c Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Wed, 14 Jul 2021 23:25:59 +0900 Subject: [PATCH] vector: Rename arguments --- vector/path.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vector/path.go b/vector/path.go index fa36495a3..b774ad760 100644 --- a/vector/path.go +++ b/vector/path.go @@ -50,8 +50,8 @@ func (p *Path) LineTo(x, y float32) { } // QuadTo adds a quadratic Bézier curve to the path. -func (p *Path) QuadTo(cpx, cpy, x, y float32) { - p.quadTo(cpx, cpy, x, y, 0) +func (p *Path) QuadTo(x1, y1, x2, y2 float32) { + p.quadTo(x1, y1, x2, y2, 0) } // isPointCloseToSegment detects the distance between a segment (x0, y0)-(x1, y1) and a point (x, y) is less than allow. @@ -89,8 +89,8 @@ func (p *Path) quadTo(x1, y1, x2, y2 float32, level int) { } // CubicTo adds a cubic Bézier curve to the path. -func (p *Path) CubicTo(cp0x, cp0y, cp1x, cp1y, x, y float32) { - p.cubicTo(cp0x, cp0y, cp1x, cp1y, x, y, 0) +func (p *Path) CubicTo(x1, y1, x2, y2, x3, y3 float32) { + p.cubicTo(x1, y1, x2, y2, x3, y3, 0) } func (p *Path) cubicTo(x1, y1, x2, y2, x3, y3 float32, level int) {