MCPcopy Index your code
hub / github.com/gonum/plot / Path

Method Path

vg/geom.go:59–66  ·  view source on GitHub ↗

Path returns the path of a Rect specified by its upper left corner, width and height.

()

Source from the content-addressed store, hash-verified

57// Path returns the path of a Rect specified by its
58// upper left corner, width and height.
59func (r Rectangle) Path() (p Path) {
60 p.Move(r.Min)
61 p.Line(Point{X: r.Max.X, Y: r.Min.Y})
62 p.Line(r.Max)
63 p.Line(Point{X: r.Min.X, Y: r.Max.Y})
64 p.Close()
65 return
66}

Callers 3

DrawMethod · 0.80
StrokeMethod · 0.80
FillMethod · 0.80

Calls 3

MoveMethod · 0.80
LineMethod · 0.80
CloseMethod · 0.80

Tested by

no test coverage detected