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)
| 122 | // point of the arc's circle, the radius of the circle |
| 123 | // and the start and sweep angles. |
| 124 | func (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. |
no outgoing calls