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

Method Add

vg/geom.go:50–55  ·  view source on GitHub ↗

Add returns the rectangle r translated by p.

(p Point)

Source from the content-addressed store, hash-verified

48
49// Add returns the rectangle r translated by p.
50func (r Rectangle) Add(p Point) Rectangle {
51 return Rectangle{
52 Min: r.Min.Add(p),
53 Max: r.Max.Add(p),
54 }
55}
56
57// Path returns the path of a Rect specified by its
58// upper left corner, width and height.

Callers

nothing calls this directly

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected