()
| 28 | } |
| 29 | |
| 30 | func (g *Polyline) LocalBBox() math32.Box2 { |
| 31 | bb := math32.B2Empty() |
| 32 | for _, pt := range g.Points { |
| 33 | bb.ExpandByPoint(pt) |
| 34 | } |
| 35 | hlw := 0.5 * g.LocalLineWidth() |
| 36 | bb.Min.SetSubScalar(hlw) |
| 37 | bb.Max.SetAddScalar(hlw) |
| 38 | return bb |
| 39 | } |
| 40 | |
| 41 | func (g *Polyline) Render(sv *SVG) { |
| 42 | sz := len(g.Points) |
nothing calls this directly
no test coverage detected