MCPcopy Index your code
hub / github.com/andlabs/ui / ArcTo

Method ArcTo

draw.go:106–112  ·  view source on GitHub ↗

ArcTo adds a circular arc to the current figure of the DrawPath. You pass it the center of the arc, its radius in radians, the starting angle (couterclockwise) in radians, and the number of radians the arc should sweep (counterclockwise). A line segment is drawn from the current point to the start o

(xCenter float64, yCenter float64, radius float64, startAngle float64, sweep float64, isNegative bool)

Source from the content-addressed store, hash-verified

104// the current point to the start of the arc. The current point is set to
105// the end of the arc.
106func (p *DrawPath) ArcTo(xCenter float64, yCenter float64, radius float64, startAngle float64, sweep float64, isNegative bool) {
107 C.uiDrawPathArcTo(p.p,
108 C.double(xCenter), C.double(yCenter),
109 C.double(radius),
110 C.double(startAngle), C.double(sweep),
111 frombool(isNegative))
112}
113
114// BezierTo adds a cubic Bezier curve to the current figure of the
115// DrawPath. Its start point is the current point. c1x and c1y are the

Callers

nothing calls this directly

Calls 1

fromboolFunction · 0.85

Tested by

no test coverage detected