MCPcopy
hub / github.com/gonum/plot / Polygon

Struct Polygon

plotter/polygon.go:17–29  ·  view source on GitHub ↗

Polygon implements the Plotter interface, drawing a polygon.

Source from the content-addressed store, hash-verified

15
16// Polygon implements the Plotter interface, drawing a polygon.
17type Polygon struct {
18 // XYs is a copy of the vertices of this polygon.
19 // Each item in the array holds one ring in the
20 // Polygon.
21 XYs []XYs
22
23 // LineStyle is the style of the line around the edge
24 // of the polygon.
25 draw.LineStyle
26
27 // Color is the fill color of the polygon.
28 Color color.Color
29}
30
31// NewPolygon returns a polygon that uses the default line style and
32// no fill color, where xys are the rings of the polygon.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected