//CurveTo adds a cubic Bézier spline to the path from the current point to p3 //in user space coordinates, using p1 and p2 as the control points. //After calling CurveTo, the current point will be p3. // //If there is no current point, CurveTo will behave as if preceded by a call //to MoveTo(p1) // //Originally cairo_curve_to. func (c *Context) CurveTo(p1, p2, p3 Point) *Context { x0, y0 := p1.c() x1, y1 := p2.c() x2, y2 := p3.c() C.cairo_curve_to(c.c, x0, y0, x1, y1, x2, y2) return c }
func (self *Surface) CurveTo(x1, y1, x2, y2, x3, y3 float64) { C.cairo_curve_to(self.context, C.double(x1), C.double(y1), C.double(x2), C.double(y2), C.double(x3), C.double(y3)) }
// CurveTo is a wrapper around cairo_curve_to(). func (v *Context) CurveTo(x1, y1, x2, y2, x3, y3 float64) { C.cairo_curve_to(v.native(), C.double(x1), C.double(y1), C.double(x2), C.double(y2), C.double(x3), C.double(y3)) }