MCPcopy
hub / github.com/tdewolff/canvas / Arc

Method Arc

path_scanner.go:150–156  ·  view source on GitHub ↗

Arc returns the arguments for arcs (rx,ry,rot,large,sweep).

()

Source from the content-addressed store, hash-verified

148
149// Arc returns the arguments for arcs (rx,ry,rot,large,sweep).
150func (s *PathReverseScanner) Arc() (float64, float64, float64, bool, bool) {
151 if s.p.d[s.i] != ArcToCmd {
152 panic("must be arc")
153 }
154 large, sweep := toArcFlags(s.p.d[s.i+4])
155 return s.p.d[s.i+1], s.p.d[s.i+2], s.p.d[s.i+3] * 180.0 / math.Pi, large, sweep
156}
157
158// End returns the current path segment end position.
159func (s *PathReverseScanner) End() Point {

Callers 1

PathMethod · 0.95

Calls 1

toArcFlagsFunction · 0.85

Tested by

no test coverage detected