MCPcopy Index your code
hub / github.com/gonum/plot / Arc

Method Arc

vg/vg.go:124–132  ·  view source on GitHub ↗

Arc adds an arc to the path defined by the center point of the arc's circle, the radius of the circle and the start and sweep angles.

(pt Point, rad Length, s, a float64)

Source from the content-addressed store, hash-verified

122// point of the arc's circle, the radius of the circle
123// and the start and sweep angles.
124func (p *Path) Arc(pt Point, rad Length, s, a float64) {
125 *p = append(*p, PathComp{
126 Type: ArcComp,
127 Pos: pt,
128 Radius: rad,
129 Start: s,
130 Angle: a,
131 })
132}
133
134// QuadTo adds a quadratic curve element to the path,
135// given by the control point p1 and end point pt.

Callers 4

ExampleField_colorsFunction · 0.95
DrawGlyphMethod · 0.80
DrawGlyphMethod · 0.80
arcMethod · 0.80

Calls

no outgoing calls

Tested by 1

ExampleField_colorsFunction · 0.76