newContour returns a contour starting with the end points of l for the height z.
(l line, z float64)
| 407 | // newContour returns a contour starting with the end points of l for the |
| 408 | // height z. |
| 409 | func newContour(l line, z float64) *contour { |
| 410 | return &contour{z: z, forward: path{l.p1}, backward: path{l.p2}} |
| 411 | } |
| 412 | |
| 413 | func (c *contour) path(trX, trY func(float64) vg.Length) vg.Path { |
| 414 | var pa vg.Path |